Skip to content
Garry's Mod
Game Configurator

Garry's Mod Server Configuration Generator

Use the GMod server.cfg Generator to create the server.cfg for your Garry’s Mod server. Set the server name, password, RCON, and GSLT in the form, or describe your server to an AI in Easy Mode. The live preview shows the completed file, which you can copy or download. Free, with no account required, right in your browser.

Built by Florian Galz

Example result

Example: the generated server.cfg

You set the options using a form or AI Easy Mode, and the generator creates the finished server.cfg for Garry's Mod live. Below are the first lines of the default configuration; your file contains your values and all other settings.

Example · Default configuration

Output

server.cfg
// Garry's Mod — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/gmod/config-generator // Server basicshostname "ZAP Garry's Mod Server"sv_password "" // Administration & securityrcon_password ""sv_setsteamaccount ""sv_cheats 0 // Othersv_lan 0

Settings

What you can set in the GMod server.cfg

The generator creates your Garry’s Mod server’s server.cfg. Its 10 settings are split into three sections in the form; gamemodes and starting maps are also explained separately here. The Cvar or startup parameter is shown in parentheses.

Server basics

Server name (hostname, default “ZAP Garry's Mod Server”) and server password (sv_password; leave blank for a public server). You can also set the maximum player count (1–128, default 16), starting map, and gamemode. These three are startup parameters (+maxplayers, +map, +gamemode), so they do not appear in the server.cfg.

Gamemodes (+gamemode)

A dropdown with six values: sandbox (default), terrortown for TTT, murder, prop_hunt, darkrp, and cinema. The value is the gamemode folder name. After installing Workshop gamemodes, you can set them the same way using +gamemode.

Starting maps (+map)

You can choose gm_construct (default), gm_flatgrass, gm_bigcity, and gm_stormcountry, as well as the default maps for the TTT, DarkRP, and Cinema variants: ttt_minecraft_b5, rp_downtown_v4c_v2, and cinema_theatron.

Administration & security

RCON password (rcon_password; leaving it blank disables RCON), GSLT token (sv_setsteamaccount, App ID 4000), and cheat commands (sv_cheats, off by default). Setting an RCON password grants full admin access to the server; sv_cheats should never be enabled on a public server.

Other

LAN mode (sv_lan, off by default) removes the server from the public Steam server list and is only useful for local testing. There is also a field for additional startup parameters such as +host_workshop_collection <ID>, which are not written to the server.cfg either.

The generator appends lines it does not recognize from an imported server.cfg to the end of the file unchanged. It does not configure other Cvars such as Sandbox limits, a loading screen URL, or FastDL.

Guide

How to create the server.cfg for your Garry’s Mod server

From the first setting to a running server: get your server.cfg onto your GMod server.

  1. 1

    Step 1

    Open the generator or import a server.cfg

    The generator starts with Garry’s Mod defaults (server name “ZAP Garry's Mod Server”, Sandbox gamemode, gm_construct starting map, 16 players). You can see the completed server.cfg immediately in the live preview. If you already have a server.cfg, import it by uploading a .cfg or .txt file of up to 2 MB or pasting its contents.

  2. 2

    Step 2

    Choose Easy Mode or the form

    In Easy Mode, describe your server in your own words, such as “TTT server for my friends”. The AI suggests suitable values and explains each change; only changes you confirm are applied. In the form, you set each option yourself.

  3. 3

    Step 3

    Set server basics

    Enter the server name (hostname) and, optionally, a server password (sv_password). Choose a maximum player count between 1 and 128, a starting map, and a gamemode: Sandbox, TTT, Murder, Prop Hunt, DarkRP, or Cinema.

  4. 4

    Step 4

    Set up administration and security

    Set an RCON password and enter your GSLT token. Leave sv_cheats off on a public server.

  5. 5

    Step 5

    Check LAN mode and startup parameters

    Under “Other”, leave LAN mode (sv_lan) off for a public server and, if needed, note any additional startup parameters, such as +host_workshop_collection <ID> for a Workshop collection.

  6. 6

    Step 6

    Check and save server.cfg

    Check server.cfg in the live preview. Then copy or download the file, or share a link without passwords.

  7. 7

    Step 7

    Upload and apply

    Upload the server.cfg to garrysmod/cfg/server.cfg and restart the server, or run “exec server.cfg” in the console. Enter the gamemode, starting map, player count, and additional startup parameters in your server’s startup parameters (+gamemode, +map, +maxplayers).

Setup

The GMod server.cfg: location & setup

Two ways to get the config onto a server: upload it yourself or apply it directly in our panel.

The manual method

Upload yourself

  1. 1

    Download file

    Download the generated server.cfg using the button above.

  2. 2

    Upload via file manager or FTP/SFTP

    Place in garrysmod/cfg/server.cfg (Linux) or garrysmod\cfg\server.cfg (Windows).

  3. 3

    Apply changes

    Restart your server or run “exec server.cfg” in the console.

The ZAP-Hosting way

Apply in the panel, no FTP needed

Rent a Garry's Mod server from us: download the file, place it in the file manager, and restart. All in your browser.

  • File Manager directly in your browser
  • No FTP client required
  • Online in 60 seconds

More tools

More tools for your Game Server

View all Garry’s Mod tools

FAQ

Frequently asked questions about the GMod server.cfg Generator

File location, startup parameters, GSLT, Easy Mode, import, and security—briefly explained.

The server.cfg is in your server’s garrysmod game folder: garrysmod/cfg/server.cfg on Linux and garrysmod\cfg\server.cfg on Windows. Downloading it alone does not change your server. Upload the file yourself and restart the server, or run “exec server.cfg” in the console.

The generator is free to use without an account: the form, Easy Mode, import, copy, download, and share features all work without signing in. The server.cfg is created directly in your browser. Only in Easy Mode are your description and current values—excluding passwords and the GSLT token—sent to the AI, which suggests changes.

Garry’s Mod sets these at server startup using +gamemode, +map, and +maxplayers, not server.cfg Cvars. The generator therefore deliberately leaves them out of the file, along with the field for additional startup parameters. You can still select them in the form to keep all your settings together, but you must enter them in your server’s startup parameters.

Available gamemodes are Sandbox (default), TTT (terrortown), Murder, Prop Hunt, DarkRP, and Cinema. For the starting map, choose gm_construct (default), gm_flatgrass, gm_bigcity, gm_stormcountry, ttt_minecraft_b5, rp_downtown_v4c_v2, or cinema_theatron. After installing other gamemodes, such as ones from the Workshop, set them directly with +gamemode in the startup parameters.

Yes, for a public GMod server. The Game Server Login Token lets the server sign in to Steam and appears as sv_setsteamaccount in the server.cfg. You can create one for free at steamcommunity.com/dev/managegameservers using App ID 4000. The token is masked like a password in the form.

Describe the server you want in your own words, such as “public Prop Hunt server” or “TTT server for my friends”. The AI suggests suitable values and explains each change individually. Nothing is applied until you confirm it. Passwords and the GSLT token are not sent to the AI.

Yes. Import a .cfg or .txt file of up to 2 MB, or paste its contents. Recognized settings appear in the form; when exporting, the generator appends any lines it does not recognize to the end of the file unchanged.

Set a strong RCON password because it grants full admin access, and leave sv_cheats and LAN mode (sv_lan) off. sv_cheats enables cheat commands, while sv_lan removes the server from the public Steam server list. The server password, RCON password, and GSLT token are masked in the form and never saved in share links.

Any more questions?

Contact Support
Ready?

Get your Garry's Mod server online today

Rent your Garry's Mod server now and apply this config directly in the panel.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds