PedClient

isPedPerformingMeleeAction

IS_PED_PERFORMING_MELEE_ACTION0xDCCA191DF9980FD7

The GTA V native IS_PED_PERFORMING_MELEE_ACTION of the PED namespace, as LS:MP client scripts call it: the global function isPedPerformingMeleeAction, in JavaScript and in Lua.

SignatureJavaScript
isPedPerformingMeleeAction(ped: Ped): boolean
SignatureLua
isPedPerformingMeleeAction(ped: Ped): boolean

Usage

JavaScript
const result = isPedPerformingMeleeAction(ped);
Lua
local result = isPedPerformingMeleeAction(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_PERFORMING_MELEE_ACTION(Ped ped)
Hash
0xDCCA191DF9980FD7

Open in the interactive natives reference