RedM Natives

GET_WEAPONTYPE_GROUP

Hash0xEDCA14CA5199FF25
Runtime nameGetWeapontypeGroup
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC3287EE3050FB74C

Signature

Hash GET_WEAPONTYPE_GROUP(Hash weaponHash);

Parameters

NameTypeDescription
weaponHashHash—

Returns Hash

Usage

Lua
local retval = GetWeapontypeGroup(weaponHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0xEDCA14CA5199FF25, weaponHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetWeapontypeGroup(weaponHash);

// by hash
const retval = Citizen.invokeNative('0xEDCA14CA5199FF25', weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xEDCA14CA5199FF25, weaponHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.