The Lab
WEAPON native

GET_PED_BACKUP_WEAPON

returns Hash2 paramsbuild 1207

Returns the hash of the ped's backup weapon.

Signature

C
Hash GET_PED_BACKUP_WEAPON(Ped ped, BOOL p1); // 0xC71FE230A513C30F b1207

Parameters

#NameType
1pedPed
2p1BOOL

Facts

Facts about GET_PED_BACKUP_WEAPON
Name
GET_PED_BACKUP_WEAPON
Hash
0xC71FE230A513C30F
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(0xC71FE230A513C30F, -- GET_PED_BACKUP_WEAPON
  PlayerPedId(), -- Ped ped
  false, -- BOOL p1
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xC71FE230A513C30F", // GET_PED_BACKUP_WEAPON
  PlayerPedId(), // Ped ped
  false, // BOOL p1
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xC71FE230A513C30F, // GET_PED_BACKUP_WEAPON
  API.PlayerPedId(), // Ped ped
  false // BOOL p1
);
All WEAPON natives

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