RedM Natives

_DOES_PED_HAVE_SNIPER

Returns whether the ped has a sniper p1: 0 or 1

Hash0x80BB243789008A82
Runtime nameDoesPedHaveSniper
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _DOES_PED_HAVE_SNIPER(Ped ped, BOOL p1);

Parameters

NameTypeDescription
pedPed—
p1BOOL—

Returns BOOL

Description

VORPCORE RDR3natives

Returns whether the ped has a sniper p1: 0 or 1

Usage

Lua
local retval = DoesPedHaveSniper(ped, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x80BB243789008A82, ped, p1, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DoesPedHaveSniper(ped, p1);

// by hash
const retval = Citizen.invokeNative('0x80BB243789008A82', ped, p1, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x80BB243789008A82, ped, p1);
  • 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.