The Lab
WEAPON native

_IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT

returns BOOL2 paramsbuild 1207

Returns true if the ped carries a sniper weapon at the given attach point.

Signature

C
BOOL _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT(Ped ped, int attachPoint); // 0xD2209866B0CB72EA b1207

Parameters

#NameType
1pedPed
2attachPointint

Facts

Facts about _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
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.

Lua
local result = Citizen.InvokeNative(0xD2209866B0CB72EA, -- _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
  PlayerPedId(), -- Ped ped
  0 -- int attachPoint
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xD2209866B0CB72EA", // _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
  PlayerPedId(), // Ped ped
  0, // int attachPoint
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xD2209866B0CB72EA, // _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT
  API.PlayerPedId(), // Ped ped
  0 // int attachPoint
);
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.