RedM Natives

IS_PED_PERFORMING_MELEE_ACTION

Hash0xDCCA191DF9980FD7
Runtime nameIsPedPerformingMeleeAction
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDCCA191DF9980FD7

Signature

BOOL IS_PED_PERFORMING_MELEE_ACTION(Ped ped, int p1, Hash p2);

Parameters

NameTypeDescription
pedPed—
p1int—
p2Hash—

Returns BOOL

Usage

Lua
local retval = IsPedPerformingMeleeAction(ped, p1, p2)

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

// by hash
const retval = Citizen.invokeNative('0xDCCA191DF9980FD7', ped, p1, p2, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xDCCA191DF9980FD7, ped, p1, p2);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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