_TASK_VEHICLE_FLEE_ON_CLEANUP
Vehicle Auto Drive (?) p1/p2/p3: usually 1f, 1f, 0f or 0f, 0f, 0f
Hash
0x55CD5FDDD4335C1ERuntime name
TaskVehicleFleeOnCleanupNamespaceTASK
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
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
p1 | float | — |
p2 | float | — |
p3 | float | — |
speed | float | — |
type | Hash | — |
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
TaskVehicleFleeOnCleanup(vehicle, p1, p2, p3, speed, type)
-- always works, by hash
Citizen.InvokeNative(0x55CD5FDDD4335C1E, vehicle, p1, p2, p3, speed, type)JavaScript and C#
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);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.InvokeNativeneeds the number — passjoaat("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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.