VehicleClient

setDisableAutomaticCrashTask

SET_DISABLE_AUTOMATIC_CRASH_TASK0x97841634EF7DF1D6

The GTA V native SET_DISABLE_AUTOMATIC_CRASH_TASK of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDisableAutomaticCrashTask, in JavaScript and in Lua.

SignatureJavaScript
setDisableAutomaticCrashTask(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setDisableAutomaticCrashTask(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setDisableAutomaticCrashTask(vehicle, toggle);
Lua
setDisableAutomaticCrashTask(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets a flag on heli and another vehicle type.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_DISABLE_AUTOMATIC_CRASH_TASK(Vehicle vehicle, BOOL toggle)
Hash
0x97841634EF7DF1D6
Introduced
Game build 1180 legacy numbering

Open in the interactive natives reference