VehicleClient

setOpenRearDoorsOnExplosion

SET_OPEN_REAR_DOORS_ON_EXPLOSION0x1B212B26DD3C04DF

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_OPEN_REAR_DOORS_ON_EXPLOSION(Vehicle vehicle, BOOL toggle)
Hash
0x1B212B26DD3C04DF
Introduced
Game build 757 legacy numbering

Open in the interactive natives reference