Garry's Mod Wiki

Garry's Mod Wiki

  string GetHostName()

Description

Returns the name of the current server.

Returns

1 string
The name of the server.

Example

Print the current hostname.

MsgN( GetHostName( ) ) -- Loopback server, expected output: Garry's Mod.
Output:
Garry's Mod

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...