getJetpackMaxHeight | Multi Theft Auto: Wiki Skip to content

getJetpackMaxHeight

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 your jetpack can fly without failing to go higher.

Syntax

getJetpackMaxHeight ( )

Code Examples

server

This example returns the max jetpack height to a player if they use the command 'jetpackmaxheight'.

function commandGetJetpackMaxHeight()
local height = getJetpackMaxHeight() or "N/A"
outputChatBox("Jetpack max height: "..height, 0, 255, 0)
end
addCommandHandler("jetpackmaxheight", commandGetJetpackMaxHeight)

See Also

World Functions