
Garry's Mod launch command
Generate the Garry's Mod srcds launch line: map, gamemode, slots, port, Workshop collection and GSLT token.
Last updated: 10/9/2026
100% local processing — saved in your browser.
0 = game default (parameter not added).
Numeric Workshop collection ID (public or unlisted).
GSLT token (AppID 4000): never share it.
#!/bin/bash # Generated by games-tools.game-rank.com cd "$(dirname "$0")" ./srcds_run -console \ -game garrysmod \ +maxplayers 16 \ +gamemode sandbox \ +map gm_construct
How to use Garry's Mod launch command?
A Garry's Mod server starts with srcds_run (Linux) or srcds.exe (Windows) and parameters: -game garrysmod, +map, +gamemode, +maxplayers… This tool assembles the correct line, one parameter per line.
Pick Linux or Windows, the map (e.g. gm_construct), the gamemode (e.g. sandbox) and the slot count.
Set the port if you do not use 27015, and the numeric ID of your Workshop collection (optional).
Paste your GSLT token (created at steamcommunity.com/dev/managegameservers with AppID 4000).
Download the script, put it in the server root (next to srcds_run), make it executable (chmod +x) and run it. On Windows, rename it to .bat.
Frequently asked questions
More Garry's Mod tools



