Gamemodes + addons
Sandbox, DarkRP, TTT — and how to install workshop addons.
Garry's Mod runs different "gamemodes" — Sandbox is default, but DarkRP, TTT (Trouble in Terrorist Town), Murder, Prop Hunt, and dozens of others are popular.
Setting the gamemode
In your panel startup variables (or server.cfg):
gamemode "sandbox" // or darkrp, terrortown, murder, etc.
For non-default gamemodes, you need to install the gamemode addon first (next section).
Server config (server.cfg)
Lives at /data/gmod/garrysmod/cfg/server.cfg. Common settings:
hostname "Your GMod Server"
sv_password "" // empty for public
rcon_password "your-rcon"
sv_maxplayers 16
sv_lan 0
sv_region 1 // 0=US East 1=US West 2=South America 3=Europe ...
sv_loadingurl "" // custom loading screen
Workshop addons / collections
Players auto-download workshop content on connect. To make your server use addons:
- Create a Steam Workshop Collection with all the addons you want.
- Get the collection ID (the
?id=in its URL). - Set in panel:
WORKSHOP_COLLECTION_ID=<id>(or+host_workshop_collection <id>in startup). - Restart. Server downloads the addons.
Server-side addons
Some addons need to be installed in
/data/gmod/garrysmod/addons/ directly (not via Workshop).
Common cases: custom gamemodes, admin tools (ULX), permission
systems.
- Stop the server.
- Upload the addon folder to
/garrysmod/addons/. - Each addon goes in its own subfolder.
- Start the server.
Map
map gm_construct // change to map of your choice
Players download maps automatically if they're not in their local files.
Admin tools
Most communities use ULX + ULib for admin commands and permissions. Install both as server-side addons.
After install, the first connecting Steam user is added as
superadmin via ulx adduser <name> superadmin from the server
console (or panel console).
DarkRP setup
For DarkRP specifically:
- Install DarkRP from workshop or GitHub release.
- Set
gamemode "darkrp"in startup. - Edit
/garrysmod/gamemodes/darkrp/gamemode/config/to configure jobs, money, jail times, etc. - Restart.
DarkRP has a steep learning curve. The DarkRP wiki has the canonical docs.