server.Info
The server information table.
Fields
| Name | Type | Description |
|---|---|---|
ping | number | The server ping in milliseconds. = 0 |
name | string | The server name.
This value is set on the server by the hostname convar. = "Garry's Mod" |
level_name | string | The name of the loaded level on the server.
BSP: maps/{name}.bsp
AI navigation: maps/{name}.ain
Navigation Mesh: maps/{name}.nav = "gm_construct" |
version | number | Contains the version number of GMod. = 201211 |
address | string | The server address in IP:Port format. = "127.0.0.1:27015" |
country | string? | Two digit country code in the ISO 3166-1 alpha-2 standard. This value is set on the server by the sv_location convar. |
last_played_time | number | Time when you last played on this server, as UNIX timestamp or 0. = 0 |
has_password | boolean | Whether this server has password or not.
On the server, this value is set by the console variable sv_password. = false |
is_anonymous | boolean | Is the server signed into an anonymous account?
The value will be false if +sv_setsteamaccount is equal to a valid Steam game server token.
Steam Game Server Accounts = false |
player_count | number | The number of players on the server.
This is a total player count including both real people and bots created by the server. = 0 |
player_limit | number | The maximum number of players on the server.
This value can be set at server startup using the console variable +maxplayers. = 0 |
bot_count | number | The number of bots on the server created by the server itself. = 0 |
human_count | number | The number of real people (game clients) on the server. = 0 |
gamemode_name | string | The gamemode folder name and the GM.Folder value.
This applies to Garry's gamemodes, they are different from the gamemodes in dreamwork... = "sandbox" |
gamemode_title | string | The GM.Name value.
This applies to Garry's gamemodes, they are different from the gamemodes in dreamwork... = "Sandbox" |
gamemode_wsid | string? | The identifier of the gamemode workshop item in the Steam workshop. |
gamemode_category | string | The category of the gamemode, ex. pvp, pve, rp or roleplay. = "other" |