getVehicleLandingGearDown | Multi Theft Auto: Wiki Skip to content

getVehicleLandingGearDown

Client-side
Server-side
Shared

Pair: setVehicleLandingGearDown

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to check whether a vehicle's landing gear is down or not. Only planes can be used with this function.

Syntax

getVehicleLandingGearDown ( )

Code Examples

server

This function tells you to pull up the landing gear if you're in a Hydra with its landing gear down.

function checkGear( thePlayer )
local theVehicle = getPedOccupiedVehicle( thePlayer ) --Get the players vehicle
if ( getElementModel(theVehicle) == 520 and getVehicleLandingGearDown( theVehicle ) == false ) then --if the vehicle is a hydra, and the landing gear is up
outputChatBox( "Pull up!", thePlayer ) --tell the player to pull up.
end
end

See Also

Vehicle Functions