GetJetpackMaxHeight

From Multi Theft Auto: Wiki
Revision as of 22:16, 2 July 2011 by Arran Fortuna (talk | contribs) (Created page with "__NOTOC__ {{Client function}} This function gets the maximum height at which your jetpack can fly without failing to go higher. ==Syntax== <syntaxhighlight lang="lua"> float getJetpackMaxHeight ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function gets the maximum height at which your jetpack can fly without failing to go higher.

Syntax

float getJetpackMaxHeight ( )

Returns

Returns a float containing the max jetpack height.

Example

Click to collapse [-]
Client

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