COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
Returns how many peds within radius of the given point are in combat with ped.
Signature
int COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS(Ped ped, float x, float y, float z, float radius, int flag); // 0x336B3D200AB007CB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | radius | float |
| 6 | flag | int |
Facts
| 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.
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)// 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)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
);Related PED natives
- COUNT_PEDS_IN_COMBAT_WITH_TARGET
- _GET_PEDS_IN_COMBAT_WITH_TARGET
- CAN_PED_IN_COMBAT_SEE_TARGET
- _COUNT_PEDS_AWARE_OF_EVENT
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- IS_PED_IN_COMBAT
- IS_PED_IN_MELEE_COMBAT
- IS_TARGET_PED_IN_PERCEPTION_AREA
- SET_FORMATION_POSITIONS_TARGET_RADIUS
- CLONE_PED_TO_TARGET
- _CAN_PED_HEAR_TARGET_PED
- _CLEAR_PED_COMBAT_STYLE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.