VehicleClient

setVehicleExplodesOnHighExplosionDamage

SET_VEHICLE_EXPLODES_ON_HIGH_EXPLOSION_DAMAGE0x71B0892EC081D60A

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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 vehicle to be strongly resistant to explosions. p0 is the vehicle; set p1 to false to toggle the effect on/off.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_EXPLODES_ON_HIGH_EXPLOSION_DAMAGE(Vehicle vehicle, BOOL toggle)
Hash
0x71B0892EC081D60A

Open in the interactive natives reference