setSpecialFlightModeRatio
SET_SPECIAL_FLIGHT_MODE_RATIO0xD138FA15C9776837The GTA V native SET_SPECIAL_FLIGHT_MODE_RATIO of the VEHICLE namespace, as LS:MP client scripts call it: the global function setSpecialFlightModeRatio, in JavaScript and in Lua.
setSpecialFlightModeRatio(vehicle: Vehicle, ratio: number): voidsetSpecialFlightModeRatio(vehicle: Vehicle, ratio: number)Usage
setSpecialFlightModeRatio(vehicle, ratio);setSpecialFlightModeRatio(vehicle, ratio)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
ratio | float | number | number |
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.
Used in conjunction with setSpecialFlightModeTargetRatio, in Rockstar's scripts. Using this will instantly transform the vehicle into hover mode starting from the given ratio (ranging from 0.0 to 1.0, values greater than 1.0 will put the vehicle into a glitched state.) If this is not used alongside setSpecialFlightModeTargetRatio, the vehicle will automatically transform back into car mode.
Usable only with the deluxo and other vehicles with deluxo-like hover mode toggle, modded or otherwise. Does nothing when used on oppressor2.
Example:
Ped playerPed = playerPedId();
Vehicle veh = getVehiclePedIsUsing(playerPed);
setSpecialFlightModeRatio(veh, 0.7f);
setSpecialFlightModeTargetRatio(veh, 1.0f);Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_SPECIAL_FLIGHT_MODE_RATIO(Vehicle vehicle, float ratio)- Hash
0xD138FA15C9776837- Introduced
- Game build 1290 legacy numbering
- Formerly
_SET_VEHICLE_HOVER_TRANSFORM_RATIO