In this guide you will learn how to edit the different Garry's Mod server config files such as server.cfg, mapcycle.txt and exactly what each one is for.
Main Configs in Garry's Mod
By default, the configuration files listed below will control 99% of the things you need to do on your server. Here is an overview of each file and what commands/convars should go where. You can edit these files by going to Files.
server.cfg
Default location: /garrysmod/cfg/server.cfg
The server.cfg file is the main configuration file of your Garry's Mod server, this is where you add custom commands which can control things such as spawn limits, noclip and voice chat.
The commands at the top of the file, such as hostname and sv_password, are managed by the panel's Settings page and will be overwritten, so add your own commands under the Custom Commands section only.
Here are some examples of common settings:
- sbox_maxprops - Prop spawn limit per player.
- sbox_noclip - Allow players to use noclip.
- sbox_godmode - Make all players invincible.
- sv_alltalk - Everyone hears voice chat, no team restrictions.
If you're looking for an in-depth list of Garry's Mod server commands, see our searchable Garry's Mod console commands list.
mapcycle.txt
Default location: /garrysmod/cfg/mapcycle.txt
The mapcycle file is where you edit your Garry's Mod server map rotation, ensure that any map added has already been uploaded to the garrysmod/maps folder on your server. This file exists by default, so simply add your desired maps one per line.
