getLandingGearState
GET_LANDING_GEAR_STATE0x9B0F3DCA3DB0F4CDThe GTA V native GET_LANDING_GEAR_STATE of the VEHICLE namespace, as LS:MP client scripts call it: the global function getLandingGearState, in JavaScript and in Lua.
getLandingGearState(vehicle: Vehicle): numbergetLandingGearState(vehicle: Vehicle): integerUsage
JavaScript
const result = getLandingGearState(vehicle);Lua
local result = getLandingGearState(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Landing gear states:
0: Deployed
1: Closing (Retracting)
2: (Landing gear state 2 is never used.)
3: Opening (Deploying)
4: Retracted
Returns the current state of the vehicles landing gear.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
int GET_LANDING_GEAR_STATE(Vehicle vehicle)- Hash
0x9B0F3DCA3DB0F4CD- Formerly
_GET_VEHICLE_LANDING_GEAR