SetAircraftMaxHeight

From Multi Theft Auto: Wiki
Revision as of 09:28, 15 June 2011 by Rafael Schiedel (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} This function changes the maximum flying height of aircraft. ==Syntax== <syntaxhighlight lang="lua"> bool setAircraftMaxHeight ( float Height ) </syntaxhighlight> ===R...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function changes the maximum flying height of aircraft.

Syntax

bool setAircraftMaxHeight ( float Height )

Required Arguments

  • Height

Returns

Returns true if successful, false otherwise.

Example

Click to collapse [-]
Client

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

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

See Also