# CFX::CLEAR_PED_TASKS_IMMEDIATELY

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

## Signature

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

## Parameters

- `ped` (`Ped`) — Ped id.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Immediately stops the pedestrian from whatever it's doing. The difference between this and [CLEAR_PED_TASKS](#\_0xE1EF3C1216AFF2CD) is that this one teleports the ped but does not change the position of the ped.

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

## Usage

### Lua

```lua
ClearPedTasksImmediately(ped)

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

### JavaScript

```js
ClearPedTasksImmediately(ped);

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

### C#

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

*Sources: Cfx.re native reference.*
