IS_PED_ARMED
Returns true if the ped is armed with a weapon matching the type flags.
Signature
BOOL IS_PED_ARMED(Ped ped, int flags); // 0xCB690F680A3EA971 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | flags | int |
Facts
| Name | IS_PED_ARMED |
|---|---|
| Hash | 0xCB690F680A3EA971 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xCB690F680A3EA971, -- IS_PED_ARMED
PlayerPedId(), -- Ped ped
0 -- int flags
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xCB690F680A3EA971", // IS_PED_ARMED
PlayerPedId(), // Ped ped
0, // int flags
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xCB690F680A3EA971, // IS_PED_ARMED
API.PlayerPedId(), // Ped ped
0 // int flags
);Related WEAPON natives
- _IS_TARGET_PED_CONSTRAINED_BY_PED_USING_BOLAS
- IS_PED_CARRYING_WEAPON
- IS_PED_WEAPON_READY_TO_SHOOT
- _GET_IS_PED_TAKING_POISON_GAS_DAMAGE
- _IS_PED_CARRYING_BACKUP_WEAPON
- _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
- _IS_PED_CURRENT_WEAPON_HOLSTERED
- IS_WEAPON_A_GUN
- IS_WEAPON_BOW
- IS_WEAPON_MELEE_WEAPON
- IS_WEAPON_PISTOL
- IS_WEAPON_REPEATER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.