VehicleClient

getLandingGearState

GET_LANDING_GEAR_STATE0x9B0F3DCA3DB0F4CD

The 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.

SignatureJavaScript
getLandingGearState(vehicle: Vehicle): number
SignatureLua
getLandingGearState(vehicle: Vehicle): integer

Usage

JavaScript
const result = getLandingGearState(vehicle);
Lua
local result = getLandingGearState(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Open in the interactive natives reference