# TASK::_CLEAR_VEHICLE_TASKS

- **Hash:** `0x141BC64C8D7C5529`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `ClearVehicleTasks`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/_CLEAR_VEHICLE_TASKS

## Signature

```c
void _CLEAR_VEHICLE_TASKS(Vehicle vehicle);
```

## Parameters

- `vehicle` (`Vehicle`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Clears all active tasks assigned to the specified vehicle.
This cancels ongoing behaviors such as TASK_VEHICLE_DRIVE_TO_DESTINATION_2.
And even tasks triggered by horses pulling the vehicle when they start moving due to gunfire etc.

*Source: VORPCORE RDR3natives*

Clears all active tasks assigned to the specified vehicle This cancels ongoing behaviors such as TASK_VEHICLE_DRIVE_TO_DESTINATION_2, or even tasks triggered by horses pulling the vehicle when they start moving due to gunfire etc. in the decompiles seems to always be paired with `0xEBA2081E0A5F4D17`

## Usage

### Lua

```lua
ClearVehicleTasks(vehicle)

-- always available, by hash
Citizen.InvokeNative(0x141BC64C8D7C5529, vehicle)
```

### JavaScript

```js
ClearVehicleTasks(vehicle);

// by hash
Citizen.invokeNative('0x141BC64C8D7C5529', vehicle);
```

### C#

```csharp
Function.Call((Hash)0x141BC64C8D7C5529, vehicle);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
