RedM Natives

_GET_PEDS_IN_COMBAT_WITH_TARGET

Hash0x7BE607DAFF382FD2
Runtime nameGetPedsInCombatWithTarget
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_PEDS_IN_COMBAT_WITH_TARGET(Ped ped, ItemSet itemset, int flag);

Parameters

NameTypeDescription
pedPed—
itemsetItemSet—
flagint—

Returns int

Usage

Lua
local retval = GetPedsInCombatWithTarget(ped, itemset, flag)

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

// by hash
const retval = Citizen.invokeNative('0x7BE607DAFF382FD2', ped, itemset, flag, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x7BE607DAFF382FD2, ped, itemset, flag);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB

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