getServerName
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 retrieves the server's name.
Syntax
getServerName ( )Code Examples
server
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 )