RedM Natives

_CLEAR_VEHICLE_TASKS

Clears all active tasks assigned to the specified vehicle.

Hash0x141BC64C8D7C5529
Runtime nameClearVehicleTasks
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _CLEAR_VEHICLE_TASKS(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns void

Description

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.

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
ClearVehicleTasks(vehicle)

-- always works, by hash
Citizen.InvokeNative(0x141BC64C8D7C5529, vehicle)
JavaScript and C#
JavaScript
ClearVehicleTasks(vehicle);

// by hash
Citizen.invokeNative('0x141BC64C8D7C5529', vehicle);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.