_IS_PED_CARRYING_BACKUP_WEAPON
Returns true if the ped is carrying a backup weapon at the given attach point.
Signature
BOOL _IS_PED_CARRYING_BACKUP_WEAPON(Ped ped, int attachPoint); // 0x486C96A0DCD2BC92 b1232Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | attachPoint | int |
Facts
| Name | _IS_PED_CARRYING_BACKUP_WEAPON |
|---|---|
| Hash | 0x486C96A0DCD2BC92 |
| Namespace | |
| Returns | BOOL |
| Game build | 1232 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x486C96A0DCD2BC92, -- _IS_PED_CARRYING_BACKUP_WEAPON
PlayerPedId(), -- Ped ped
0 -- int attachPoint
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x486C96A0DCD2BC92", // _IS_PED_CARRYING_BACKUP_WEAPON
PlayerPedId(), // Ped ped
0, // int attachPoint
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x486C96A0DCD2BC92, // _IS_PED_CARRYING_BACKUP_WEAPON
API.PlayerPedId(), // Ped ped
0 // int attachPoint
);Related WEAPON natives
- _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
- _IS_PED_CURRENT_WEAPON_HOLSTERED
- IS_PED_CARRYING_WEAPON
- _IS_TARGET_PED_CONSTRAINED_BY_PED_USING_BOLAS
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- GET_PED_BACKUP_WEAPON
- IS_PED_WEAPON_READY_TO_SHOOT
- IS_WEAPON_MELEE_WEAPON
- _IS_AMMO_TYPE_VALID_FOR_WEAPON
- _IS_WEAPON_BINOCULARS
- _IS_WEAPON_CLOSE_RANGE
- _IS_WEAPON_HOLSTER_STATE_CHANGING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.