How To Configure Your Garry's Mod Server
Learn how to configure your Garry's Mod dedicated server.
Garry's Mod server configuration is handled through server.cfg and the Startup settings in your panel. Here is how to configure your server.
Using Startup Settings
Open the Startup Page
Log in to the XGamingServer Panel and select your Garry's Mod server. In the sidebar, click Startup.
Adjust Settings
The Startup page provides fields for common settings including:
- Server Name - Display name in the server browser
- Map - Starting map
- Max Players - Maximum player count
- Game Mode - The game mode to run (sandbox, terrortown, darkrp, etc.)
- GSLT - Your Game Server Login Token
- Workshop Collection ID - Steam Workshop collection for addons
Restart Your Server
After making changes, restart from the Console page.
Editing server.cfg
Open Files
In the sidebar, click Files. Navigate to garrysmod/cfg/ and open server.cfg.
Edit Configuration
Common server.cfg settings:
// Server Identity
hostname "My GMod Server"
sv_password ""
rcon_password "yourrconpassword"
// Network
sv_maxrate 0
sv_minrate 0
sv_maxupdaterate 66
sv_minupdaterate 33
// Gameplay
sbox_noclip 1
sbox_godmode 0
sbox_maxprops 150
sbox_maxragdolls 10
sbox_maxnpcs 10
sbox_maxballoons 20
sbox_maxeffects 10
sbox_maxdynamite 5
sbox_maxlamps 10
sbox_maxthrusters 20
sbox_maxwheels 20
sbox_maxhoverballs 20
sbox_maxvehicles 6
sbox_maxbuttons 20
sbox_maxemitters 5
// Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0Save and Restart
Save the file and restart your server.
Game Mode Configuration
Each game mode may have its own configuration files:
- Sandbox - Uses the default
server.cfgsandbox limits above - TTT - Configuration in
garrysmod/cfg/with TTT-specific convars - DarkRP - Configuration in
garrysmod/addons/darkrpmodification/ - PropHunt - Configuration through game mode-specific convars
📝 Note: The game mode is set in Startup and determines the core gameplay experience. Make sure you have the correct addons installed for your chosen game mode.
How is this guide?