VehicleClient

setDisableHeliExplodeFromBodyDamage

SET_DISABLE_HELI_EXPLODE_FROM_BODY_DAMAGE0xEDBC8405B3895CC9

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

SignatureJavaScript
setDisableHeliExplodeFromBodyDamage(vehicle: Vehicle, disable: boolean): void
SignatureLua
setDisableHeliExplodeFromBodyDamage(vehicle: Vehicle, disable: boolean)

Usage

JavaScript
setDisableHeliExplodeFromBodyDamage(vehicle, disable);
Lua
setDisableHeliExplodeFromBodyDamage(vehicle, disable)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
disableBOOLbooleanboolean

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.

Prevents the vehicle from exploding when taking body damage. Only works for helis and planes.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_DISABLE_HELI_EXPLODE_FROM_BODY_DAMAGE(Vehicle vehicle, BOOL disable)
Hash
0xEDBC8405B3895CC9
Introduced
Game build 1103 legacy numbering

Open in the interactive natives reference