Configure your GMOD server
This guide explains how to configure your Garry's Mod server.
Configuration files
server.cfg
Path: garrysmod/cfg/server.cfg
// Server name
hostname "My GMOD Server - YorkHost"
// RCON password (remote admin)
rcon_password "your_secure_password"
// Server password (optional)
sv_password ""
// Number of slots
sv_maxrate 0
sv_minrate 100000
// Tags for the server list
sv_tags "roleplay, darkrp, english"
info
The gamemode and startup map are not set in server.cfg: use the Mode de jeu (Gamemode) and Carte de démarrage (Startup map) fields in Game → Configuration.
Change the server name
- Access Files in the panel
- Navigate to
garrysmod/cfg/ - Edit
server.cfg - Modify
hostname - Restart the server
Workshop Collection
To add a map or addons automatically:
- Create a public Steam Workshop collection
- Get the collection ID
- In the panel, Game → Configuration > Workshop collection
- Enter your collection ID and restart
Details, choosing the map and troubleshooting: DarkRP, gamemodes and Workshop maps.
Install a gamemode
DarkRP installs in one click from Game → Mods. For another gamemode:
- Upload it to
garrysmod/gamemodes/<name>/ - In Game → Configuration, set Gamemode to
<name>(exact folder name, lowercase) - Restart
See DarkRP, gamemodes and Workshop maps.
warning
Always use a secure RCON password.