RedM Natives

COUNT_PEDS_IN_COMBAT_WITH_TARGET

Hash0x5407B7288D0478B7
Runtime nameCountPedsInCombatWithTarget
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5407B7288D0478B7

Signature

int COUNT_PEDS_IN_COMBAT_WITH_TARGET(Ped ped, int flag);

Parameters

NameTypeDescription
pedPed—
flagint—

Returns int

Usage

Lua
local retval = CountPedsInCombatWithTarget(ped, flag)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5407B7288D0478B7, ped, flag, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CountPedsInCombatWithTarget(ped, flag);

// by hash
const retval = Citizen.invokeNative('0x5407B7288D0478B7', ped, flag, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x5407B7288D0478B7, ped, flag);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.