NIEUW 📢 Bespaar tot 30% op je eerste maand, tijdelijke aanbieding!

How to change your Garry's Mod server name, password and gamemode

Garry's ModUpdated Sep 24, 20263 min read

Garry's Mod reads garrysmod/cfg/server.cfg every time it loads a map. The gamemode, the starting map and the slot count are chosen when the server launches.


1. Edit server.cfg

  1. Stop the server in the Game Panel.
  2. Open the Files tab and browse to garrysmod/cfg.
  3. Open server.cfg, or create it if it does not exist.
CommandWhat it does
hostnameThe name in the server browser.
sv_passwordPassword to join. Empty means open.
rcon_passwordPassword for remote admin commands.
sv_lanMust be 0 for an internet server.
sbox_maxpropsProps each player may spawn.
sbox_noclipAllows noclip in sandbox.
sv_alltalkLets everyone hear everyone.
sv_setsteamaccountYour Steam game server token.

Values with spaces go in quotation marks.


2. Gamemode, map and slots

These are launch values, set on the Startup page of your server. That page is not linked in the sidebar, so open your server in the panel and add /startup to the end of the address.

  • The gamemode is the folder name in garrysmod/gamemodes, for example sandbox or darkrp.
  • The map is the map file name without its extension, for example gm_construct.
  • The map must exist on the server, and it must suit the gamemode. DarkRP on gm_construct will start but will make no sense.

3. Change the map now

Run changelevel gm_flatgrass in the Console tab in the panel. Everyone reconnects to the new map.


4. Apply the changes

  1. Save the file.
  2. Start the server, or run exec server.cfg in the console to reload it without a restart.
  3. Run status to confirm the hostname, map and gamemode.

5. If a setting is ignored

  • Check the spelling. The console silently skips commands it does not recognise.
  • Some gamemodes overwrite settings on load. Put gamemode specific settings in the config file that gamemode reads instead.
  • Run exec server.cfg by hand in the console to see the errors printed.

Open a ticket from Support in the Client Area if a setting will not hold.

MAAK JE EIGEN GAMESERVER
KLAAR OM TE BEGINNEN?

Bespaar tot 30% op je nieuwe gameserver.
Premium prestaties, directe activatie en ongeëvenaarde betrouwbaarheid voor een betere prijs.

ONZE NIEUWSTE BLOGS