getAircraftMaxHeight | Multi Theft Auto: Wiki Skip to content

getAircraftMaxHeight

Client-side
Server-side
Shared

Manual Review Required

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

float getAircraftMaxHeight ( )

Returns

  • float: value

Returns a float containing the max aircraft height.

Code Examples

shared

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