PedClient

countPedsInCombatWithTarget

COUNT_PEDS_IN_COMBAT_WITH_TARGET0x5407B7288D0478B7

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

SignatureJavaScript
countPedsInCombatWithTarget(ped: Ped): number
SignatureLua
countPedsInCombatWithTarget(ped: Ped): integer

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Ped PED
In the game
int COUNT_PEDS_IN_COMBAT_WITH_TARGET(Ped ped)
Hash
0x5407B7288D0478B7

Open in the interactive natives reference