VehicleClient

setVehicleExplodesOnExplosionDamageAtZeroBodyHealth

SET_VEHICLE_EXPLODES_ON_EXPLOSION_DAMAGE_AT_ZERO_BODY_HEALTH0xD565F438137F0E10

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_EXPLODES_ON_EXPLOSION_DAMAGE_AT_ZERO_BODY_HEALTH(Vehicle vehicle, BOOL toggle)
Hash
0xD565F438137F0E10
Introduced
Game build 1103 legacy numbering

Open in the interactive natives reference