The Lab
PED native

_GET_PEDS_IN_COMBAT_WITH_TARGET

returns int3 paramsbuild 1207

Fills itemset with peds that are in combat with ped and returns how many were found.

Signature

C
int _GET_PEDS_IN_COMBAT_WITH_TARGET(Ped ped, ItemSet itemset, int flag); // 0x7BE607DAFF382FD2 b1207

Parameters

#NameType
1pedPed
2itemsetItemSet
3flagint

Facts

Facts about _GET_PEDS_IN_COMBAT_WITH_TARGET
Name
_GET_PEDS_IN_COMBAT_WITH_TARGET
Hash
0x7BE607DAFF382FD2
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x7BE607DAFF382FD2, -- _GET_PEDS_IN_COMBAT_WITH_TARGET
  PlayerPedId(), -- Ped ped
  0, -- ItemSet itemset
  0, -- int flag
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x7BE607DAFF382FD2", // _GET_PEDS_IN_COMBAT_WITH_TARGET
  PlayerPedId(), // Ped ped
  0, // ItemSet itemset
  0, // int flag
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x7BE607DAFF382FD2, // _GET_PEDS_IN_COMBAT_WITH_TARGET
  API.PlayerPedId(), // Ped ped
  0, // ItemSet itemset
  0 // int flag
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.