RedM Natives

_TASK_VEHICLE_FLEE_ON_CLEANUP

Vehicle Auto Drive (?) p1/p2/p3: usually 1f, 1f, 0f or 0f, 0f, 0f

Hash0x55CD5FDDD4335C1E
Runtime nameTaskVehicleFleeOnCleanup
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _TASK_VEHICLE_FLEE_ON_CLEANUP(Vehicle vehicle, float p1, float p2, float p3, float speed, Hash type);

Parameters

NameTypeDescription
vehicleVehicle—
p1float—
p2float—
p3float—
speedfloat—
typeHash—

Returns void

Description

Vehicle Auto Drive (?)
p1/p2/p3: usually 1f, 1f, 0f or 0f, 0f, 0f
Speed: usually 8f
Types: 1148979456 (task with flee), 1148979587 (dismissing the vehicle)

Usage

Lua
TaskVehicleFleeOnCleanup(vehicle, p1, p2, p3, speed, type)

-- always works, by hash
Citizen.InvokeNative(0x55CD5FDDD4335C1E, vehicle, p1, p2, p3, speed, type)
JavaScript and C#
JavaScript
TaskVehicleFleeOnCleanup(vehicle, p1, p2, p3, speed, type);

// by hash
Citizen.invokeNative('0x55CD5FDDD4335C1E', vehicle, p1 + 0.0000001, p2 + 0.0000001, p3 + 0.0000001, speed + 0.0000001, type);
C#
Function.Call((Hash)0x55CD5FDDD4335C1E, vehicle, p1, p2, p3, speed, type);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.
  • 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

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