_CLEAR_VEHICLE_TASKS
Clears all active tasks assigned to the specified vehicle.
0x141BC64C8D7C5529ClearVehicleTasksSignature
void _CLEAR_VEHICLE_TASKS(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns void
Description
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.
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
ClearVehicleTasks(vehicle)
-- always works, by hash
Citizen.InvokeNative(0x141BC64C8D7C5529, vehicle)JavaScript and C#
ClearVehicleTasks(vehicle);
// by hash
Citizen.invokeNative('0x141BC64C8D7C5529', vehicle);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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.