getJetpackMaxHeight | Multi Theft Auto: Wiki Skip to content

getJetpackMaxHeight

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

Syntax

float getJetpackMaxHeight ( )

Returns

  • float: value

Returns a float containing the max jetpack height.

Code Examples

shared

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