dreamworkAPI
Ctrl K
GitHub
typeDocs / server / Info

server.Info

typesharedmenusource

The server information table.

Fields

NameTypeDescription
pingnumberThe server ping in milliseconds. = 0
namestringThe server name. This value is set on the server by the hostname convar. = "Garry's Mod"
level_namestringThe name of the loaded level on the server. BSP: maps/{name}.bsp AI navigation: maps/{name}.ain Navigation Mesh: maps/{name}.nav = "gm_construct"
versionnumberContains the version number of GMod. = 201211
addressstringThe server address in IP:Port format. = "127.0.0.1:27015"
countrystring?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_timenumberTime when you last played on this server, as UNIX timestamp or 0. = 0
has_passwordbooleanWhether this server has password or not. On the server, this value is set by the console variable sv_password. = false
is_anonymousbooleanIs 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_countnumberThe number of players on the server. This is a total player count including both real people and bots created by the server. = 0
player_limitnumberThe maximum number of players on the server. This value can be set at server startup using the console variable +maxplayers. = 0
bot_countnumberThe number of bots on the server created by the server itself. = 0
human_countnumberThe number of real people (game clients) on the server. = 0
gamemode_namestringThe gamemode folder name and the GM.Folder value. This applies to Garry's gamemodes, they are different from the gamemodes in dreamwork... = "sandbox"
gamemode_titlestringThe GM.Name value. This applies to Garry's gamemodes, they are different from the gamemodes in dreamwork... = "Sandbox"
gamemode_wsidstring?The identifier of the gamemode workshop item in the Steam workshop.
gamemode_categorystringThe category of the gamemode, ex. pvp, pve, rp or roleplay. = "other"
Generated from the dreamwork meta branch.