VehicleClient

setHeliResistToExplosion

SET_HELI_RESIST_TO_EXPLOSION0x8074CC1886802912

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_HELI_RESIST_TO_EXPLOSION(Vehicle vehicle, BOOL toggle)
Hash
0x8074CC1886802912
Introduced
Game build 2545 legacy numbering
Formerly
_SET_HELI_RESIST_TO_EXPLOSION

Open in the interactive natives reference