getWeapontypeSlot
GET_WEAPONTYPE_SLOT0x4215460B9B8B7FA0The GTA V native GET_WEAPONTYPE_SLOT of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeapontypeSlot, in JavaScript and in Lua.
getWeapontypeSlot(weaponHash: Hash): HashgetWeapontypeSlot(weaponHash: Hash): HashUsage
JavaScript
const hash = getWeapontypeSlot(weaponHash);Lua
local hash = getWeapontypeSlot(weaponHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponHash | Hash | number | integer |
Returns
Hash JavaScript number, Lua integerA game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.
Reference
- Namespace
- Weapon WEAPON
- In the game
Hash GET_WEAPONTYPE_SLOT(Hash weaponHash)- Hash
0x4215460B9B8B7FA0