Garry's ModSettings & Admin
GMod server.cfg Settings Explained
What each line in your Garry's Mod server.cfg does, which ones the panel manages for you, and what belongs in the Startup tab instead.
Every Garry's Mod server on our platform starts with a server.cfg file we write when the server is installed. It holds your server's name, password and a set of safe defaults, and it is the right place for plain console settings you want to keep. This guide goes through what each starting line does, which ones the panel looks after for you, and what belongs in the Startup tab instead.
Open the file
- Stop the server from the dashboard.
- Open the File Manager and go to
garrysmod/cfg/server.cfg. How to manage your server files covers opening and saving. - Change what you need, keeping the format of the lines around it, then save and Start the server.
The file is read when the server boots. A command typed into the Console changes the running server but not the file, so anything you want to keep goes in server.cfg.
What the starting lines do
Add your own lines under the // Add custom lines under here comment at the bottom.
Sandbox limits
The sbox_ lines cap what a single player can create. sbox_maxprops is props and sbox_maxragdolls is ragdolls. Our file starts sbox_maxprops at 100, where the game's own default is 500, and sbox_maxragdolls at 5, where the game's default is 10. Raise a number if your players hit a limit, one line at a time.
sbox_godmode makes every player invincible, and sbox_noclip lets players use noclip. Our file starts both at 0, so both are off.
Show your server's country flag
Add an sv_location line with your country's two letter code. Facepunch's wiki says the value follows the ISO 3166-1 alpha-2 country codes, matches a flag icon in the game, and can be up to five characters. Its examples are gb and us. Australia's code in that list is au, so for an Australian server:
sv_location "au"Facepunch describes sv_location as the location of the server to be displayed in the server browser. Save the file and restart the server for it to be read.
What does not belong in server.cfg
The server is launched with the map, gamemode, player slots, tickrate, Workshop collection and Steam token already filled in from the panel. Set those there; server.cfg is the wrong place for them.
- Map, gamemode, Player slots and Tickrate: Startup tab, Game card.
- Collection: Workshop tab.
- Steam token: Startup tab, Rank in the server browser card.
Leave the exec lines and the network settings alone, and take a backup before a big edit. How to create and restore backups shows how.
Related guides

Enable Cheats on Your GMod Server
Turn on sv_cheats from the Console tab, or save it in server.cfg so it survives a restart, and see which commands it unlocks for players.
3 min read
Add a Custom Loading Screen to GMod
Design a custom Garry's Mod loading screen in the Loading screen tab with a live preview, then publish it as your server's sv_loadingurl.
4 min read
Change the Player Slots on Your GMod Server
Change how many players your Garry's Mod server allows from the Startup tab, apply it with a restart and check the new number.
3 min read