VehicleClient

setSpecialFlightModeAllowed

SET_SPECIAL_FLIGHT_MODE_ALLOWED0xF1211889DF15A763

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

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

Usage

JavaScript
setSpecialFlightModeAllowed(vehicle, toggle);
Lua
setSpecialFlightModeAllowed(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.

It will override the ability to transform deluxo. For oppressor it will work just like setDisableHoverModeFlight

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_SPECIAL_FLIGHT_MODE_ALLOWED(Vehicle vehicle, BOOL toggle)
Hash
0xF1211889DF15A763
Introduced
Game build 1290 legacy numbering
Formerly
_SET_VEHICLE_HOVER_TRANSFORM_ENABLED

Open in the interactive natives reference