RedM Natives

_GET_PED_CURRENT_HELD_WEAPON

Returns eCurrentHeldWeapon _GET_R* - _GET_T*

Hash0x8425C5F057012DAB
Runtime nameGetPedCurrentHeldWeapon
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Hash _GET_PED_CURRENT_HELD_WEAPON(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns Hash

Description

Returns eCurrentHeldWeapon
_GET_R* - _GET_T*

Usage

Lua
local retval = GetPedCurrentHeldWeapon(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x8425C5F057012DAB, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedCurrentHeldWeapon(ped);

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

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