VehicleClientNot in this build

setDisableExplodeFromBodyDamageReceivedByAiVehicle

_SET_DISABLE_EXPLODE_FROM_BODY_DAMAGE_RECEIVED_BY_AI_VEHICLE0xB0B7DF5CB876FF5E

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

SignatureJavaScript
setDisableExplodeFromBodyDamageReceivedByAiVehicle(
  vehicle: Vehicle,
  disable: boolean
): void
SignatureLua
setDisableExplodeFromBodyDamageReceivedByAiVehicle(
  vehicle: Vehicle,
  disable: boolean
)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
setDisableExplodeFromBodyDamageReceivedByAiVehicle(vehicle, disable);
Lua
setDisableExplodeFromBodyDamageReceivedByAiVehicle(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 if the inflictor is an AI-controlled vehicle. Only works for planes.

Reference

Namespace
Vehicle VEHICLE
In the game
void _SET_DISABLE_EXPLODE_FROM_BODY_DAMAGE_RECEIVED_BY_AI_VEHICLE(Vehicle vehicle, BOOL disable)
Hash
0xB0B7DF5CB876FF5E
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference