GET_VEHICLE_FLIGHT_NOZZLE_POSITION
0xDA62027C8BDB326E
0xAD40AD55
// GetVehicleFlightNozzlePosition
float GET_VEHICLE_FLIGHT_NOZZLE_POSITION(Vehicle aircraft);
Returns: A float indicating the percentage of the hover mode. 1.0 = in VTOL mode, 0.0 = in normal flying mode.
Old name: _GET_PLANE_HOVER_MODE_PERCENTAGE
Old name: _GET_VEHICLE_HOVER_MODE_PERCENTAGE
Old name: _GET_PLANE_VTOL_DIRECTION
Examples:
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
if GetVehicleFlightNozzlePosition(vehicle) == 0.0 then
print("Flying normally!")
elseif GetVehicleFlightNozzlePosition(vehicle) == 1.0 then
print("Flying in VTOL mode!")
else
print("Currently switching hover mode!")
end