RedM Natives

_DOES_PED_HAVE_RIFLE

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

Hash0x95CA12E2C68043E5
Runtime nameDoesPedHaveRifle
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _DOES_PED_HAVE_RIFLE(Ped ped, BOOL p1);

Parameters

NameTypeDescription
pedPed—
p1BOOL—

Returns BOOL

Description

VORPCORE RDR3natives

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

Usage

Lua
local retval = DoesPedHaveRifle(ped, p1)

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

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