# CFX::CLEAR_PED_SECONDARY_TASK

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

## Signature

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

## Parameters

- `ped` (`Ped`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

CLEAR_PED_SECONDARY_TASK

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

## Usage

### Lua

```lua
ClearPedSecondaryTask(ped)

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

### JavaScript

```js
ClearPedSecondaryTask(ped);

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

### C#

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

*Sources: Cfx.re native reference.*
