setDisableAutomaticCrashTask
SET_DISABLE_AUTOMATIC_CRASH_TASK0x97841634EF7DF1D6The 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.
setDisableAutomaticCrashTask(vehicle: Vehicle, toggle: boolean): voidsetDisableAutomaticCrashTask(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setDisableAutomaticCrashTask(vehicle, toggle);Lua
setDisableAutomaticCrashTask(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
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