WeaponClient

getWeapontypeGroup

GET_WEAPONTYPE_GROUP0xC3287EE3050FB74C

The 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.

SignatureJavaScript
getWeapontypeGroup(weaponHash: Hash): Hash
SignatureLua
getWeapontypeGroup(weaponHash: Hash): Hash

Usage

JavaScript
const hash = getWeapontypeGroup(weaponHash);
Lua
local hash = getWeapontypeGroup(weaponHash)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger

Returns

Hash JavaScript number, Lua integer

A 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

Open in the interactive natives reference