---
title: "Weapon Slots | open.mp"
description: "Weapon Slots used by GetWeaponSlot and GetPlayerWeaponData."
canonical: https://omp.itsneufox.com/docs/scripting/resources/weaponslots
language: en
---

# Weapon Slots

info

Weapon Slots used by [GetWeaponSlot](https://omp.itsneufox.com/docs/scripting/functions/GetWeaponSlot) and [GetPlayerWeaponData](https://omp.itsneufox.com/docs/scripting/functions/GetPlayerWeaponData).

| Definition | Value |
| --- | --- |
| WEAPON\_SLOT\_UNKNOWN | \-1 |
| WEAPON\_SLOT\_UNARMED | 0 |
| WEAPON\_SLOT\_MELEE | 1 |
| WEAPON\_SLOT\_PISTOL | 2 |
| WEAPON\_SLOT\_SHOTGUN | 3 |
| WEAPON\_SLOT\_MACHINE\_GUN | 4 |
| WEAPON\_SLOT\_ASSAULT\_RIFLE | 5 |
| WEAPON\_SLOT\_LONG\_RIFLE | 6 |
| WEAPON\_SLOT\_ARTILLERY | 7 |
| WEAPON\_SLOT\_EXPLOSIVES | 8 |
| WEAPON\_SLOT\_EQUIPMENT | 9 |
| WEAPON\_SLOT\_GIFT | 10 |
| WEAPON\_SLOT\_GADGET | 11 |
| WEAPON\_SLOT\_DETONATOR | 12 |
