VehicleClientNot in this build

setPlaneControlSectionsShouldBreakOffFromExplosions

SET_PLANE_CONTROL_SECTIONS_SHOULD_BREAK_OFF_FROM_EXPLOSIONS0xDD8A2D3337F04196

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

SignatureJavaScript
setPlaneControlSectionsShouldBreakOffFromExplosions(
  vehicle: Vehicle,
  toggle: boolean
): void
SignatureLua
setPlaneControlSectionsShouldBreakOffFromExplosions(
  vehicle: Vehicle,
  toggle: 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
setPlaneControlSectionsShouldBreakOffFromExplosions(vehicle, toggle);
Lua
setPlaneControlSectionsShouldBreakOffFromExplosions(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_PLANE_CONTROL_SECTIONS_SHOULD_BREAK_OFF_FROM_EXPLOSIONS(Vehicle vehicle, BOOL toggle)
Hash
0xDD8A2D3337F04196
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference