GET_VEHICLE_FLIGHT_NOZZLE_POSITION
Gets the flight nozzel position for the specified vehicle.
Signature
float GET_VEHICLE_FLIGHT_NOZZLE_POSITION(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to check. |
Returns float — The flight nozzel position between 0.0 (flying normally) and 1.0 (VTOL mode)
Description
Gets the flight nozzel position for the specified vehicle. See the client-side _GET_VEHICLE_FLIGHT_NOZZLE_POSITION native for usage examples.
Usage
local retval = GetVehicleFlightNozzlePosition(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xad40ad55, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehicleFlightNozzlePosition(vehicle);
// by hash
const retval = Citizen.invokeNative('0xad40ad55', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xad40ad55, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.