GetAircraftMaxHeight: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 24: Line 24:


==See Also==
==See Also==
{{Client_world_functions}}
{{Shared_world_functions}}

Revision as of 14:50, 1 July 2024

This function gets the maximum height at which aircraft can fly without their engines turning off.

Syntax

float getAircraftMaxHeight ( )

Returns

Returns a float containing the max aircraft height.

Example

Click to collapse [-]
Client

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