_CLEAR_VEHICLE_TASKS_SECONDARY
Clears the vehicle's secondary/aux AI task slot (behaviors/overlays).
Hash
0xEBA2081E0A5F4D17Runtime name
ClearVehicleTasksSecondaryNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _CLEAR_VEHICLE_TASKS_SECONDARY(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns void
Description
Clears the vehicle's secondary/aux AI task slot (behaviors/overlays).
In R* Scripts, this is often called right after _CLEAR_VEHICLE_TASKS to fully stop/flush vehicle behavior.
in the decompiles seems to always be paired with _CLEAR_VEHICLE_TASKS
Usage
ClearVehicleTasksSecondary(vehicle)
-- always works, by hash
Citizen.InvokeNative(0xEBA2081E0A5F4D17, vehicle)JavaScript and C#
ClearVehicleTasksSecondary(vehicle);
// by hash
Citizen.invokeNative('0xEBA2081E0A5F4D17', vehicle);Function.Call((Hash)0xEBA2081E0A5F4D17, 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.