- Documentation
- Server functions
- setVehicleLandingGearDown
Function
setVehicleLandingGearDown
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.
valuebooltrue= 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.