controlLandingGear
CONTROL_LANDING_GEAR0xCFC8BE9A5E1FE575The 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.
controlLandingGear(vehicle: Vehicle, state: number): voidcontrolLandingGear(vehicle: Vehicle, state: integer)Usage
JavaScript
controlLandingGear(vehicle, state);Lua
controlLandingGear(vehicle, state)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
state | int | number | integer |
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