COUNT_PEDS_IN_COMBAT_WITH_TARGET
Returns how many peds are in combat with ped.
Signature
int COUNT_PEDS_IN_COMBAT_WITH_TARGET(Ped ped, int flag); // 0x5407B7288D0478B7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | flag | int |
Facts
| 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.
local result = Citizen.InvokeNative(0x5407B7288D0478B7, -- COUNT_PEDS_IN_COMBAT_WITH_TARGET
PlayerPedId(), -- Ped ped
0, -- int flag
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x5407B7288D0478B7", // COUNT_PEDS_IN_COMBAT_WITH_TARGET
PlayerPedId(), // Ped ped
0, // int flag
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x5407B7288D0478B7, // COUNT_PEDS_IN_COMBAT_WITH_TARGET
API.PlayerPedId(), // Ped ped
0 // int flag
);Related PED natives
- COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS
- _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
- CLONE_PED_TO_TARGET
- _CAN_PED_HEAR_TARGET_PED
- _CLEAR_PED_COMBAT_STYLE
- _CLEAR_PED_COMBAT_STYLE_MOD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.