RedM Natives

_IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT

Checks whether the weapon stored/equipped at the specified ped attach point is classified as a sniper weapon.

Hash0xD2209866B0CB72EA
Runtime nameIsPedCarryingWeaponSniperAtAttachPoint
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _IS_PED_CARRYING_WEAPON_SNIPER_AT_ATTACH_POINT(Ped ped, int attachPoint);

Parameters

NameTypeDescription
pedPed—
attachPointint—

Returns BOOL

Description

alloc8or RDR3 NativeDB

Checks whether the weapon stored/equipped at the specified ped attach point is classified as a sniper weapon.

Params:
- ped: Target ped.
- attachPoint: Attach point / weapon slot to check.

Returns:
- BOOL: True if that slot contains a sniper-class weapon.

Video:
- https://imgur.com/a/sRwan6L

VORPCORE RDR3natives

Returns true if the ped has a sniper-type weapon equipped or stored in the specified attach point (slot).

Usage

Lua
local retval = IsPedCarryingWeaponSniperAtAttachPoint(ped, attachPoint)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD2209866B0CB72EA, ped, attachPoint, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedCarryingWeaponSniperAtAttachPoint(ped, attachPoint);

// by hash
const retval = Citizen.invokeNative('0xD2209866B0CB72EA', ped, attachPoint, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xD2209866B0CB72EA, ped, attachPoint);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.