The Lab
PED native

IS_PED_IN_COMBAT

returns BOOL2 paramsbuild 1207

Returns true if ped is in combat with target, or with anyone when target is 0.

Signature

C
BOOL IS_PED_IN_COMBAT(Ped ped, Ped target); // 0x4859F1FC66A6278E b1207

Parameters

#NameType
1pedPed
2targetPed

Facts

Facts about IS_PED_IN_COMBAT
Name
IS_PED_IN_COMBAT
Hash
0x4859F1FC66A6278E
Namespace
Returns
BOOL
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(0x4859F1FC66A6278E, -- IS_PED_IN_COMBAT
  PlayerPedId(), -- Ped ped
  PlayerPedId() -- Ped target
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x4859F1FC66A6278E", // IS_PED_IN_COMBAT
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Ped target
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x4859F1FC66A6278E, // IS_PED_IN_COMBAT
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId() // Ped target
);
All PED natives

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