VehicleClient

setDisableVerticalFlightModeTransition

SET_DISABLE_VERTICAL_FLIGHT_MODE_TRANSITION0xCE2B43770B655F8F

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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.

True stops vtols from switching modes. Doesn't stop the sound though.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_DISABLE_VERTICAL_FLIGHT_MODE_TRANSITION(Vehicle vehicle, BOOL toggle)
Hash
0xCE2B43770B655F8F
Introduced
Game build 1290 legacy numbering
Formerly
_SET_PLANE_VTOL_ANIMATION_DISABLED _SET_DISABLE_VEHICLE_FLIGHT_NOZZLE_POSITION

Open in the interactive natives reference