GET_PED_BACKUP_WEAPON
Returns the hash of the ped's backup weapon.
Signature
Hash GET_PED_BACKUP_WEAPON(Ped ped, BOOL p1); // 0xC71FE230A513C30F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | BOOL |
Facts
| 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.
local hash = Citizen.InvokeNative(0xC71FE230A513C30F, -- GET_PED_BACKUP_WEAPON
PlayerPedId(), -- Ped ped
false, -- BOOL p1
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0xC71FE230A513C30F", // GET_PED_BACKUP_WEAPON
PlayerPedId(), // Ped ped
false, // BOOL p1
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0xC71FE230A513C30F, // GET_PED_BACKUP_WEAPON
API.PlayerPedId(), // Ped ped
false // BOOL p1
);Related WEAPON natives
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- GET_PED_AMMO_TYPE_FROM_WEAPON
- GET_PED_LAST_WEAPON_IMPACT_COORD
- GET_PED_WEAPON_GUID_AT_ATTACH_POINT
- GET_AMMO_IN_PED_WEAPON
- GET_BEST_PED_WEAPON
- GET_CURRENT_PED_VEHICLE_WEAPON
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _GET_BEST_PED_WEAPON_IN_GROUP
- _GET_BEST_PED_WEAPON_IN_INVENTORY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.