getAircraftMaxHeight | Multi Theft Auto: Wiki Skip to content

getAircraftMaxHeight

Client-side
Server-side
Shared

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 gets the maximum height at which aircraft can fly without their engines turning off.

Syntax

getAircraftMaxHeight ( )

Code Examples

server

This example returns the max aircraft height to a player if they use the command 'aircraftmaxheight'.

function commandGetAircraftMaxHeight()
local height = getAircraftMaxHeight() or "N/A"
outputChatBox("Aircraft max height: "..height, 0, 255, 0)
end
addCommandHandler("aircraftmaxheight", commandGetAircraftMaxHeight)

See Also

World Functions