VehicleClient

setAllowVehicleExplodesOnContact

SET_ALLOW_VEHICLE_EXPLODES_ON_CONTACT0x3441CAD2F2231923

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_ALLOW_VEHICLE_EXPLODES_ON_CONTACT(Vehicle vehicle, BOOL toggle)
Hash
0x3441CAD2F2231923

Open in the interactive natives reference