IS_PED_PERFORMING_MELEE_ACTION
Hash
0xDCCA191DF9980FD7Runtime name
IsPedPerformingMeleeActionNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xDCCA191DF9980FD7Signature
BOOL IS_PED_PERFORMING_MELEE_ACTION(Ped ped, int p1, Hash p2);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | int | — |
p2 | Hash | — |
Returns BOOL
Usage
local retval = IsPedPerformingMeleeAction(ped, p1, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDCCA191DF9980FD7, ped, p1, p2, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedPerformingMeleeAction(ped, p1, p2);
// by hash
const retval = Citizen.invokeNative('0xDCCA191DF9980FD7', ped, p1, p2, Citizen.returnResultAnyway());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.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.