{"hash":"0x89CF5FF3D363311E","ns":"WEAPON","name":"_GET_WEAPON_NAME","slug":"_GET_WEAPON_NAME","official":false,"named":true,"luaName":"GetWeaponName","game":"rdr3","apiset":"client","returnType":"const char*","params":[{"name":"weaponHash","type":"Hash"}],"summary":"Returns \"WNS_INVALID\" if the weapon is invalid/doesn't exist.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns \"WNS_INVALID\" if the weapon is invalid/doesn't exist."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_WEAPON_NAME","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_WEAPON_NAME.md","snippets":{"lua":"local retval = GetWeaponName(weaponHash)","luaInvoke":"local retval = Citizen.InvokeNative(0x89CF5FF3D363311E, weaponHash, Citizen.ResultAsString())","js":"const retval = GetWeaponName(weaponHash);","jsInvoke":"const retval = Citizen.invokeNative('0x89CF5FF3D363311E', weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsString());","csharp":"string retval = Function.Call<string>((Hash)0x89CF5FF3D363311E, weaponHash);","notes":["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` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}