getServerName
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function retrieves the server's name.
Syntax
string getServerName ( )Returns
- string: value
A string containing the server's name.
Code Examples
shared
This example creates a console command that outputs the server's name to the chatbox.
function outputServerName ( ) outputChatBox ( getServerName( ) )end
-- Add console command 'getServerName'addCommandHandler ( "getServerName", outputServerName )