G.GetHostName
From GMod Wiki
| Function | |
| Syntax |
GetHostName( ) Where is this used? |
| Description: | |
| Gets the current server hostname | |
| Returns: | String |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.GetHostName]G.GetHostName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Tells us what server we are playing on. |
|---|---|
| Used on | |
| Code | print("Looks like we're playing on "..GetHostName()) |
| Output | Looks like we're playing on <Enter servers hostname here> |