GetServerName

From Multi Theft Auto: Wiki
Revision as of 06:59, 4 August 2007 by Sintax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns a string containing the server's name.

Syntax

returnType getServerName ( )

Required Arguments

  • None

Returns

A string containing the server's name.

Example

This example creates a console command that outputs the server's name the the chatbox.

function outputServerName ( )
	outputChatBox ( getServerName() )
end

-- Add console command 'getServerName'
addCommandHandler ( "getServerName", outputServerName )

See Also