COUNT_PEDS_IN_COMBAT_WITH_TARGET
Hash
0x5407B7288D0478B7Runtime name
CountPedsInCombatWithTargetNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5407B7288D0478B7Signature
int COUNT_PEDS_IN_COMBAT_WITH_TARGET(Ped ped, int flag);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
flag | int | — |
Returns int
Usage
local retval = CountPedsInCombatWithTarget(ped, flag)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5407B7288D0478B7, ped, flag, Citizen.ResultAsInteger())JavaScript and C#
const retval = CountPedsInCombatWithTarget(ped, flag);
// by hash
const retval = Citizen.invokeNative('0x5407B7288D0478B7', ped, flag, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x5407B7288D0478B7, ped, flag);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.