ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setVehicleLandingGearDown

Function

setVehicleLandingGearDown

ServerVehiclesIdentical to MTA:SA

Lowers or raises a plane's landing gear. The change reaches the game of every player who has the plane loaded, also after it is loaded again. The pilot can then change the gear with the key, as usual in the game.

Syntax

bool setVehicleLandingGearDown(vehicle element, bool value)

Arguments

elementvehicle
The plane.
valuebool
true = down, false = up.

Returns

true on success.

Example

local plane = createVehicle(519, 1950, -2300, 14)
setVehicleLandingGearDown(plane, false)

Notes

Only planes with landing gear. For other vehicles the value is only stored.

See also