countPedsInCombatWithTarget
COUNT_PEDS_IN_COMBAT_WITH_TARGET0x5407B7288D0478B7The 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.
countPedsInCombatWithTarget(ped: Ped): numbercountPedsInCombatWithTarget(ped: Ped): integerUsage
JavaScript
const result = countPedsInCombatWithTarget(ped);Lua
local result = countPedsInCombatWithTarget(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Ped PED
- In the game
int COUNT_PEDS_IN_COMBAT_WITH_TARGET(Ped ped)- Hash
0x5407B7288D0478B7