VehicleClient

setVehicleOutOfControl

SET_VEHICLE_OUT_OF_CONTROL0xF19D095E42D430CC

The 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.

SignatureJavaScript
setVehicleOutOfControl(
  vehicle: Vehicle,
  killDriver: boolean,
  explodeOnImpact: boolean
): void
SignatureLua
setVehicleOutOfControl(
  vehicle: Vehicle,
  killDriver: boolean,
  explodeOnImpact: boolean
)

Usage

JavaScript
setVehicleOutOfControl(vehicle, killDriver, explodeOnImpact);
Lua
setVehicleOutOfControl(vehicle, killDriver, explodeOnImpact)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
killDriverBOOLbooleanboolean
explodeOnImpactBOOLbooleanboolean

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

Open in the interactive natives reference