The Lab
WEAPON native

_GET_WEAPON_STAT_ID

returns Hash1 parambuild 1207

Returns the stat id hash associated with the weapon weaponHash.

Signature

C
Hash _GET_WEAPON_STAT_ID(Hash weaponHash); // 0x8EC44AE8DECFF841 b1207

Parameters

#NameType
1weaponHashHash

Facts

Facts about _GET_WEAPON_STAT_ID
Name
_GET_WEAPON_STAT_ID
Hash
0x8EC44AE8DECFF841
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(0x8EC44AE8DECFF841, -- _GET_WEAPON_STAT_ID
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x8EC44AE8DECFF841", // _GET_WEAPON_STAT_ID
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x8EC44AE8DECFF841, // _GET_WEAPON_STAT_ID
  (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.