GetServerName: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddPlayerChat(playerid, "Welcome to "..GetServerName()..".")
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[SetServerName]]
* [[SetServerName]]

Latest revision as of 10:03, 12 December 2019

GetServerName

Type: Function
Context: Server
Introduced: v1.0

Description

Gets the servers display name.

Syntax

GetServerName()

Parameters

  • This function has no parameters.

Return Value

  • The name of the server

Example

AddPlayerChat(playerid, "Welcome to "..GetServerName()..".")

See also