setDisableExplodeFromBodyDamageOnCollision
SET_DISABLE_EXPLODE_FROM_BODY_DAMAGE_ON_COLLISION0x26E13D440E7F6064The GTA V native SET_DISABLE_EXPLODE_FROM_BODY_DAMAGE_ON_COLLISION of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDisableExplodeFromBodyDamageOnCollision, in JavaScript and in Lua.
setDisableExplodeFromBodyDamageOnCollision(
vehicle: Vehicle,
disable: boolean
): voidsetDisableExplodeFromBodyDamageOnCollision(
vehicle: Vehicle,
disable: boolean
)Usage
JavaScript
setDisableExplodeFromBodyDamageOnCollision(vehicle, disable);Lua
setDisableExplodeFromBodyDamageOnCollision(vehicle, disable)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
disable | BOOL | boolean | boolean |
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 it was caused by a collision. Only works for planes.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_DISABLE_EXPLODE_FROM_BODY_DAMAGE_ON_COLLISION(Vehicle vehicle, BOOL disable)- Hash
0x26E13D440E7F6064- Introduced
- Game build 1290 legacy numbering