---
title: "GetPlayerLandingGearState | open.mp"
description: "获取玩家当前驾驶飞机的起落架状态"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GetPlayerLandingGearState
language: zh-CN
---

# GetPlayerLandingGearState

注意

这个函数是在omp v1.1.0.2612中添加的，在以前的版本中不起作用！

## 描述

获取玩家当前驾驶飞机的[起落架状态](https://omp.itsneufox.com/zh-CN/docs/scripting/resources/landinggearstate)

## 参数

| 参数名 | 说明 |
| --- | --- |
| playerid | 需要检测的玩家 ID |

## 示例代码

```c
new LANDING_GEAR_STATE:landingGearState = GetPlayerLandingGearState(playerid);
```

## 相关函数

-   [GetVehicleLandingGearState](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GetVehicleLandingGearState): 通过飞机 ID 直接获取起落架状态（需配合最新驾驶员数据）

## 相关资源

-   [飞机起落架状态说明](https://omp.itsneufox.com/zh-CN/docs/scripting/resources/landinggearstate)
