_DOES_PED_HAVE_SNIPER
Returns true if the ped has a sniper rifle.
Signature
BOOL _DOES_PED_HAVE_SNIPER(Ped ped, BOOL p1); // 0x80BB243789008A82 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | BOOL |
Facts
| Name | _DOES_PED_HAVE_SNIPER |
|---|---|
| Hash | 0x80BB243789008A82 |
| 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(0x80BB243789008A82, -- _DOES_PED_HAVE_SNIPER
PlayerPedId(), -- Ped ped
false -- BOOL p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x80BB243789008A82", // _DOES_PED_HAVE_SNIPER
PlayerPedId(), // Ped ped
false, // BOOL p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x80BB243789008A82, // _DOES_PED_HAVE_SNIPER
API.PlayerPedId(), // Ped ped
false // BOOL p1
);Related WEAPON natives
- _DOES_PED_HAVE_SHOTGUN
- _DOES_PED_HAVE_PISTOL
- _DOES_PED_HAVE_REPEATER
- _DOES_PED_HAVE_REVOLVER
- _DOES_PED_HAVE_RIFLE
- _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
- _IS_TARGET_PED_CONSTRAINED_BY_PED_USING_BOLAS
- _DISABLE_ALL_SPECIAL_AMMO_FOR_PED
- _DISABLE_AMMO_TYPE_FOR_PED
- _DISABLE_AMMO_TYPE_FOR_PED_WEAPON
- _ADD_AMMO_TO_PED
- _ADD_AMMO_TO_PED_BY_TYPE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.