getWeapontypeGroup
GET_WEAPONTYPE_GROUP0xC3287EE3050FB74CThe GTA V native GET_WEAPONTYPE_GROUP of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeapontypeGroup, in JavaScript and in Lua.
getWeapontypeGroup(weaponHash: Hash): HashgetWeapontypeGroup(weaponHash: Hash): HashUsage
JavaScript
const hash = getWeapontypeGroup(weaponHash);Lua
local hash = getWeapontypeGroup(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_GROUP(Hash weaponHash)- Hash
0xC3287EE3050FB74C