setDisableHoverModeFlight
SET_DISABLE_HOVER_MODE_FLIGHT0x2D55FE374D5FDB91The GTA V native SET_DISABLE_HOVER_MODE_FLIGHT of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDisableHoverModeFlight, in JavaScript and in Lua.
setDisableHoverModeFlight(vehicle: Vehicle, toggle: boolean): voidsetDisableHoverModeFlight(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setDisableHoverModeFlight(vehicle, toggle);Lua
setDisableHoverModeFlight(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | 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.
Disables "wings" for some flying vehicles. Works only for oppressor _2_ and deluxo.
For deluxo it just immediately removes vehicle's "wings" and you will be not able to fly up.
For oppressor 2 it will remove wings right after you land. And you will not able to fly up anymore too.
But for opressor 2 you still can fly if you somehow get back in the air.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_DISABLE_HOVER_MODE_FLIGHT(Vehicle vehicle, BOOL toggle)- Hash
0x2D55FE374D5FDB91- Introduced
- Game build 1290 legacy numbering
- Formerly
_SET_VEHICLE_HOVER_TRANSFORM_ACTIVE