GetServerName: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddPlayerChat(playerid, "Welcome to "..GetServerName()..".") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[SetServerName]] | * [[SetServerName]] |
Latest revision as of 10:03, 12 December 2019
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()..".")