The Lab
WEAPON native

GET_WEAPONTYPE_GROUP

returns Hash1 parambuild 1207

Returns the weapon group hash of the weapon weaponHash.

Signature

C
Hash GET_WEAPONTYPE_GROUP(Hash weaponHash); // 0xEDCA14CA5199FF25 b1207

Parameters

#NameType
1weaponHashHash

Facts

Facts about GET_WEAPONTYPE_GROUP
Name
GET_WEAPONTYPE_GROUP
Hash
0xEDCA14CA5199FF25
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0xEDCA14CA5199FF25, -- GET_WEAPONTYPE_GROUP
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xEDCA14CA5199FF25", // GET_WEAPONTYPE_GROUP
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xEDCA14CA5199FF25, // GET_WEAPONTYPE_GROUP
  (uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.