VehicleClient

explodeVehicle

EXPLODE_VEHICLE0xBA71116ADF5B514C

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

SignatureJavaScript
explodeVehicle(
  vehicle: Vehicle,
  isAudible: boolean,
  isInvisible: boolean
): void
SignatureLua
explodeVehicle(vehicle: Vehicle, isAudible: boolean, isInvisible: boolean)

Usage

JavaScript
explodeVehicle(vehicle, isAudible, isInvisible);
Lua
explodeVehicle(vehicle, isAudible, isInvisible)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
isAudibleBOOLbooleanboolean
isInvisibleBOOLbooleanboolean

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.

Explodes a selected vehicle.

Vehicle vehicle = Vehicle you want to explode.
BOOL isAudible = If explosion makes a sound.
BOOL isInvisible = If the explosion is invisible or not.

First BOOL does not give any visual explosion, the vehicle just falls apart completely but slowly and starts to burn.

Reference

Namespace
Vehicle VEHICLE
In the game
void EXPLODE_VEHICLE(Vehicle vehicle, BOOL isAudible, BOOL isInvisible)
Hash
0xBA71116ADF5B514C

Open in the interactive natives reference