_IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
Returns true if the ped carries a sniper weapon at the given attach point.
Signature
BOOL _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT(Ped ped, int attachPoint); // 0xD2209866B0CB72EA b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | attachPoint | int |
Facts
| Name | _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT |
|---|---|
| Hash | 0xD2209866B0CB72EA |
| 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(0xD2209866B0CB72EA, -- _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
PlayerPedId(), -- Ped ped
0 -- int attachPoint
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xD2209866B0CB72EA", // _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
PlayerPedId(), // Ped ped
0, // int attachPoint
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD2209866B0CB72EA, // _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
API.PlayerPedId(), // Ped ped
0 // int attachPoint
);Related WEAPON natives
- _IS_PED_CARRYING_BACKUP_WEAPON
- GET_PED_WEAPON_GUID_AT_ATTACH_POINT
- _IS_PED_CURRENT_WEAPON_HOLSTERED
- _SET_PED_WEAPON_ATTACH_POINT_VISIBILITY
- IS_PED_CARRYING_WEAPON
- _IS_TARGET_PED_CONSTRAINED_BY_PED_USING_BOLAS
- _IS_WEAPON_SNIPER
- _GET_DEFAULT_WEAPON_ATTACH_POINT
- _GET_WEAPON_ATTACH_POINT
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- IS_PED_WEAPON_READY_TO_SHOOT
- IS_WEAPON_MELEE_WEAPON
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.