# CFX::TASK_COMBAT_PED

- **Hash:** `0xCB0D8932`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `TaskCombatPed`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/TASK_COMBAT_PED

## Signature

```c
void TASK_COMBAT_PED(Ped ped, Ped targetPed, int p2, int p3);
```

## Parameters

- `ped` (`Ped`)
- `targetPed` (`Ped`)
- `p2` (`int`)
- `p3` (`int`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

```
Makes the specified ped attack the target ped.
p2 should be 0
p3 should be 16
```

**This is the server-side RPC native equivalent of the client native [TASK_COMBAT_PED](?\_0xF166E48407BAC484).**

## Usage

### Lua

```lua
TaskCombatPed(ped, targetPed, p2, p3)

-- always available, by hash
Citizen.InvokeNative(0xcb0d8932, ped, targetPed, p2, p3)
```

### JavaScript

```js
TaskCombatPed(ped, targetPed, p2, p3);

// by hash
Citizen.invokeNative('0xcb0d8932', ped, targetPed, p2, p3);
```

### C#

```csharp
Function.Call((Hash)0xcb0d8932, ped, targetPed, p2, p3);
```

*Sources: Cfx.re native reference.*
