RedM Natives

GET_VEHICLE_FLIGHT_NOZZLE_POSITION

Gets the flight nozzel position for the specified vehicle.

Hash0xAD40AD55
Runtime nameGetVehicleFlightNozzlePosition
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

float GET_VEHICLE_FLIGHT_NOZZLE_POSITION(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle

The vehicle to check.

Returns float — The flight nozzel position between 0.0 (flying normally) and 1.0 (VTOL mode)

Description

Cfx.re native reference

Gets the flight nozzel position for the specified vehicle. See the client-side _GET_VEHICLE_FLIGHT_NOZZLE_POSITION native for usage examples.

Usage

Lua
local retval = GetVehicleFlightNozzlePosition(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xad40ad55, vehicle, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetVehicleFlightNozzlePosition(vehicle);

// by hash
const retval = Citizen.invokeNative('0xad40ad55', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xad40ad55, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.