The Lab
PED native

COUNT_PEDS_IN_COMBAT_WITH_TARGET

returns int2 paramsbuild 1207

Returns how many peds are in combat with ped.

Signature

C
int COUNT_PEDS_IN_COMBAT_WITH_TARGET(Ped ped, int flag); // 0x5407B7288D0478B7 b1207

Parameters

#NameType
1pedPed
2flagint

Facts

Facts about COUNT_PEDS_IN_COMBAT_WITH_TARGET
Name
COUNT_PEDS_IN_COMBAT_WITH_TARGET
Hash
0x5407B7288D0478B7
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(0x5407B7288D0478B7, -- COUNT_PEDS_IN_COMBAT_WITH_TARGET
  PlayerPedId(), -- Ped ped
  0, -- int flag
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x5407B7288D0478B7", // COUNT_PEDS_IN_COMBAT_WITH_TARGET
  PlayerPedId(), // Ped ped
  0, // int flag
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x5407B7288D0478B7, // COUNT_PEDS_IN_COMBAT_WITH_TARGET
  API.PlayerPedId(), // Ped ped
  0 // int flag
);
All PED natives

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