VehicleClient

controlLandingGear

CONTROL_LANDING_GEAR0xCFC8BE9A5E1FE575

The GTA V native CONTROL_LANDING_GEAR of the VEHICLE namespace, as LS:MP client scripts call it: the global function controlLandingGear, in JavaScript and in Lua.

SignatureJavaScript
controlLandingGear(vehicle: Vehicle, state: number): void
SignatureLua
controlLandingGear(vehicle: Vehicle, state: integer)

Usage

JavaScript
controlLandingGear(vehicle, state);
Lua
controlLandingGear(vehicle, state)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
stateintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Works for vehicles with a retractable landing gear

Landing gear states:

0: Deployed
1: Closing
2: Opening
3: Retracted

Reference

Namespace
Vehicle VEHICLE
In the game
void CONTROL_LANDING_GEAR(Vehicle vehicle, int state)
Hash
0xCFC8BE9A5E1FE575
Formerly
_SET_VEHICLE_LANDING_GEAR

Open in the interactive natives reference