Generate a Garry's Mod server.cfg
Garry's Mod loads server.cfg like other Source servers do, yet the settings people usually care about are controlled by the gamemode, not the engine.
Start from a preset
Visual Settings
server.cfg
Advertisement
The server.cfg format
Syntax is the Source norm: command, space, value, quotes when a value contains spaces, 1 and 0 for on and off. Note that sandbox limit commands are defined by the sandbox gamemode itself — on a server running any other gamemode they do not exist, so setting them has no effect.
Advertisement
The mistake that wastes an evening
Addons and gamemodes often override server.cfg while the server is running. DarkRP, for instance, applies many values from its own config files after server.cfg has already been read, so an edit here can be applied perfectly and then replaced a moment later. Look at the gamemode's config before concluding the file was ignored.