PedClient

isPedPerformingACounterAttack

IS_PED_PERFORMING_A_COUNTER_ATTACK0xEBD0EDBA5BE957CF

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_PERFORMING_A_COUNTER_ATTACK(Ped ped)
Hash
0xEBD0EDBA5BE957CF
Formerly
IS_PED_PERFORMING_DEPENDENT_COMBO_LIMIT

Open in the interactive natives reference