The Lab
PED native

COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS

returns int6 paramsbuild 1207

Returns how many peds within radius of the given point are in combat with ped.

Signature

C
int COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS(Ped ped, float x, float y, float z, float radius, int flag); // 0x336B3D200AB007CB b1207

Parameters

#NameType
1pedPed
2xfloat
3yfloat
4zfloat
5radiusfloat
6flagint

Facts

Facts about COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
Name
COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
Hash
0x336B3D200AB007CB
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(0x336B3D200AB007CB, -- COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
  PlayerPedId(), -- Ped ped
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float radius
  0, -- int flag
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x336B3D200AB007CB", // COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
  PlayerPedId(), // Ped ped
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float radius
  0, // int flag
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x336B3D200AB007CB, // COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
  API.PlayerPedId(), // Ped ped
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float radius
  0 // int flag
);
All PED natives

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