RedM Natives

GET_PED_BACKUP_WEAPON

Hash0xC71FE230A513C30F
Runtime nameGetPedBackupWeapon
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207

Signature

Hash GET_PED_BACKUP_WEAPON(Ped ped, BOOL p1);

Parameters

NameTypeDescription
pedPed—
p1BOOL—

Returns Hash

Usage

Lua
local retval = GetPedBackupWeapon(ped, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC71FE230A513C30F, ped, p1, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedBackupWeapon(ped, p1);

// by hash
const retval = Citizen.invokeNative('0xC71FE230A513C30F', ped, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xC71FE230A513C30F, ped, p1);

Sources

alloc8or RDR3 NativeDB

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