# CFX::TASK_LEAVE_ANY_VEHICLE

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

## Signature

```c
void TASK_LEAVE_ANY_VEHICLE(Ped ped, int p1, int flags);
```

## Parameters

- `ped` (`Ped`)
- `p1` (`int`)
- `flags` (`int`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Flags are the same flags used in [`TASK_LEAVE_VEHICLE`](#\_0xD3DBCE61A490BE02)

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

## Usage

### Lua

```lua
TaskLeaveAnyVehicle(ped, p1, flags)

-- always available, by hash
Citizen.InvokeNative(0xdbdd79fa, ped, p1, flags)
```

### JavaScript

```js
TaskLeaveAnyVehicle(ped, p1, flags);

// by hash
Citizen.invokeNative('0xdbdd79fa', ped, p1, flags);
```

### C#

```csharp
Function.Call((Hash)0xdbdd79fa, ped, p1, flags);
```

*Sources: Cfx.re native reference.*
