setVehicleOutOfControl
SET_VEHICLE_OUT_OF_CONTROL0xF19D095E42D430CCThe GTA V native SET_VEHICLE_OUT_OF_CONTROL of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleOutOfControl, in JavaScript and in Lua.
setVehicleOutOfControl(
vehicle: Vehicle,
killDriver: boolean,
explodeOnImpact: boolean
): voidsetVehicleOutOfControl(
vehicle: Vehicle,
killDriver: boolean,
explodeOnImpact: boolean
)Usage
JavaScript
setVehicleOutOfControl(vehicle, killDriver, explodeOnImpact);Lua
setVehicleOutOfControl(vehicle, killDriver, explodeOnImpact)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
killDriver | BOOL | boolean | boolean |
explodeOnImpact | 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.
Tested on the player's current vehicle. Unless you kill the driver, the vehicle doesn't loose control, however, if enabled, explodeOnImpact is still active. The moment you crash, boom.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_OUT_OF_CONTROL(Vehicle vehicle, BOOL killDriver, BOOL explodeOnImpact)- Hash
0xF19D095E42D430CC