RedM Natives

GET_LANDING_GEAR_STATE

Hash0xA6F02670
Runtime nameGetLandingGearState
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_LANDING_GEAR_STATE(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle

The vehicle to check.

Returns int — The current state of the vehicles landing gear.

Description

Cfx.re native reference

See the client-side GET_LANDING_GEAR_STATE native for a description of landing gear states.

Usage

Lua
local retval = GetLandingGearState(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xa6f02670, vehicle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetLandingGearState(vehicle);

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

Sources

Cfx.re native reference

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