GET_WEAPONTYPE_GROUP
Hash
0xEDCA14CA5199FF25Runtime name
GetWeapontypeGroupNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xC3287EE3050FB74CSignature
Hash GET_WEAPONTYPE_GROUP(Hash weaponHash);Parameters
| Name | Type | Description |
|---|---|---|
weaponHash | Hash | — |
Returns Hash
Usage
local retval = GetWeapontypeGroup(weaponHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0xEDCA14CA5199FF25, weaponHash, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetWeapontypeGroup(weaponHash);
// by hash
const retval = Citizen.invokeNative('0xEDCA14CA5199FF25', weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xEDCA14CA5199FF25, weaponHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.