# PED::IS_PED_IN_COMBAT

- **Hash:** `0x4859F1FC66A6278E`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `IsPedInCombat`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/IS_PED_IN_COMBAT

## Signature

```c
BOOL IS_PED_IN_COMBAT(Ped ped, Ped target);
```

## Parameters

- `ped` (`Ped`)
- `target` (`Ped`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = IsPedInCombat(ped, target)

-- always available, by hash
local retval = Citizen.InvokeNative(0x4859F1FC66A6278E, ped, target, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsPedInCombat(ped, target);

// by hash
const retval = Citizen.invokeNative('0x4859F1FC66A6278E', ped, target, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x4859F1FC66A6278E, ped, target);
```

*Sources: alloc8or RDR3 NativeDB.*
