The Lab
WEAPON native

_GET_WEAPON_NAME

returns const char*1 parambuild 1207

Returns the text label of the weapon's display name.

Signature

C
const char* _GET_WEAPON_NAME(Hash weaponHash); // 0x89CF5FF3D363311E b1207

Parameters

#NameType
1weaponHashHash

Facts

Facts about _GET_WEAPON_NAME
Name
_GET_WEAPON_NAME
Hash
0x89CF5FF3D363311E
Namespace
Returns
const char*
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x89CF5FF3D363311E, -- _GET_WEAPON_NAME
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x89CF5FF3D363311E", // _GET_WEAPON_NAME
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0x89CF5FF3D363311E, // _GET_WEAPON_NAME
  (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.