# CFX::GET_LANDING_GEAR_STATE

- **Hash:** `0xA6F02670`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetLandingGearState`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_LANDING_GEAR_STATE

## Signature

```c
int GET_LANDING_GEAR_STATE(Vehicle vehicle);
```

## Parameters

- `vehicle` (`Vehicle`) — The vehicle to check.

## Returns

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

## Description

*Source: Cfx.re native reference*

See the client-side [GET_LANDING_GEAR_STATE](#\_0x9B0F3DCA3DB0F4CD) native for a description of landing gear states.

## Usage

### Lua

```lua
local retval = GetLandingGearState(vehicle)

-- always available, by hash
local retval = Citizen.InvokeNative(0xa6f02670, vehicle, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetLandingGearState(vehicle);

// by hash
const retval = Citizen.invokeNative('0xa6f02670', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xa6f02670, vehicle);
```

*Sources: Cfx.re native reference.*
