IS_PED_CARRYING_WEAPON
Returns true if the ped is carrying the weapon weaponHash.
Signature
BOOL IS_PED_CARRYING_WEAPON(Ped ped, Hash weaponHash); // 0xF29A186ED428B552 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | weaponHash | Hash |
Facts
| Name | IS_PED_CARRYING_WEAPON |
|---|---|
| Hash | 0xF29A186ED428B552 |
| 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(0xF29A186ED428B552, -- IS_PED_CARRYING_WEAPON
PlayerPedId(), -- Ped ped
GetHashKey("weapon_revolver_cattleman") -- Hash weaponHash
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xF29A186ED428B552", // IS_PED_CARRYING_WEAPON
PlayerPedId(), // Ped ped
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xF29A186ED428B552, // IS_PED_CARRYING_WEAPON
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);Related WEAPON natives
- _IS_PED_CARRYING_BACKUP_WEAPON
- _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
- IS_PED_WEAPON_READY_TO_SHOOT
- IS_WEAPON_MELEE_WEAPON
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _IS_PED_CURRENT_WEAPON_HOLSTERED
- _IS_TARGET_PED_CONSTRAINED_BY_PED_USING_BOLAS
- IS_PED_ARMED
- IS_WEAPON_A_GUN
- IS_WEAPON_BOW
- IS_WEAPON_PISTOL
- IS_WEAPON_REPEATER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.