SetSpecialFlightModeTargetRatio
DocsSetSpecialFlightModeTargetRatio(vehicle, state)Description
According to decompiled scripts this should work with the deluxo and oppressor2 vehicles.
Does nothing when used on oppressor2.
For the deluxo:
Set state to 0.0: Fully transform to a 'road' vehicle (non-hover mode).
Set state to 1.0: Fully transform to a 'flying' vehicle (hover mode).
If you set it to something like 0.5, then something weird happens, you end up in some 50% hover mode, 50% not hover mode.
This doesn't need to be called every tick, just once and the vehicle will transform to that state at the usual transform speed. It'll just stop transforming when it reaches the state you provided.
Once this native is used then players will just be able to hit the vehicle transform key to toggle the transformation cycle; it won't block users from using the key.
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle (a deluxo or oppressor2). |
state | float | The transform state (value between 0.0 and 1.0). |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
voidThis native does not return a value.
Examples
-- In this case we are enabling the hover mode for the deluxo (fyling mode)
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
SetSpecialFlightModeTargetRatio(vehicle, 1.0)