# CFX::CLEAR_PED_TASKS

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

## Signature

```c
void CLEAR_PED_TASKS(Ped ped);
```

## Parameters

- `ped` (`Ped`) — Ped id. Use PlayerPedId() for your own character.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Clear a ped's tasks. Stop animations and other tasks created by scripts.

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

## Usage

### Lua

```lua
ClearPedTasks(ped)

-- always available, by hash
Citizen.InvokeNative(0xde3316ab, ped)
```

### JavaScript

```js
ClearPedTasks(ped);

// by hash
Citizen.invokeNative('0xde3316ab', ped);
```

### C#

```csharp
Function.Call((Hash)0xde3316ab, ped);
```

*Sources: Cfx.re native reference.*
