RedM Natives

_CLEAR_VEHICLE_TASKS_SECONDARY

Clears the vehicle's secondary/aux AI task slot (behaviors/overlays).

Hash0xEBA2081E0A5F4D17
Runtime nameClearVehicleTasksSecondary
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _CLEAR_VEHICLE_TASKS_SECONDARY(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns void

Description

alloc8or RDR3 NativeDB

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.

VORPCORE RDR3natives

in the decompiles seems to always be paired with _CLEAR_VEHICLE_TASKS

Usage

Lua
ClearVehicleTasksSecondary(vehicle)

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

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