setAircraftMaxHeight | Multi Theft Auto: Wiki Skip to content

setAircraftMaxHeight

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 changes the maximum flying height of aircraft.

Syntax

setAircraftMaxHeight ( )

Code Examples

server

This example shows you a command to set your maximum aircraft height.

function setAircraftHeight ( command, ve1 )
local height = tonumber ( ve1 )
if height then
if height > 0 then
local wert = setAircraftMaxHeight ( height )
if wert == true then
outputChatBox ( "Aircraft height set!", 0, 200, 0 )
else
outputChatBox ( "Error to set Aircraft height!", 255, 0, 0 )
end
else
outputChatBox ( "Value must be above 0", 255, 0, 0 )
end
else
outputChatBox ( "Error to set Aircraft height!", 255, 0, 0 )
end
end
addCommandHandler ( "aircraft", setAircraftHeight )

See Also

World Functions