SetSpecialFlightModeTargetRatio — FiveM Natives
0x438B3D7CA026FE91 · VEHICLE · all
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). |
Returns
void