background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kategorie

Garry's Mod Server Setup Guide


This guide covers how to configure your Garry's Mod dedicated server hosted with Legion Hosting, including server settings, Workshop collections, popular gamemodes, DarkRP setup, FastDL, and how to connect.

Before you begin: Your server runs on GPanel at gpanel.legionhosting.net. You will need SFTP access to upload or edit files. See the SFTP file upload guide if you have not set that up yet.

Table of Contents

  1. Game Server Login Token (GSLT)
  2. Configuring server.cfg
  3. Popular Gamemodes
  4. Workshop Collections
  5. DarkRP Setup
  6. FastDL Setup
  7. Connecting to Your Server

1. Game Server Login Token (GSLT)

Steam requires a Game Server Login Token for public Garry's Mod servers. Without one your server will not appear in the server browser and may be restricted.

  1. Go to steamcommunity.com/dev/managegameservers and log in.
  2. Under Create a new game server account, enter App ID 4000 (Garry's Mod) and a memo to identify the server.
  3. Click Create and copy the token that is generated.
  4. Add the token to your startup line or server.cfg using the variable sv_setsteamaccount (see below).
Note: Each GSLT is tied to one server. If you run multiple servers, generate a separate token for each one.

2. Configuring server.cfg

The main server configuration file is located at:

garrysmod/cfg/server.cfg

Connect via SFTP, navigate to that path, and open or create server.cfg. Below is a recommended starting configuration with explanations for each key setting.

// ── Identity ──────────────────────────────────────────
hostname    "My GMod Server"         // Server name shown in browser
sv_password ""                       // Leave blank for public; set a password to make it private

// ── Slots & Network ───────────────────────────────────
maxplayers  32                       // Maximum concurrent players (up to your plan limit)
sv_region   255                      // 255 = worldwide

// ── Gamemode ──────────────────────────────────────────
// Set the active gamemode. Common values: sandbox, darkrp, terrortown, prop_hunt, murder
sv_gamemode "sandbox"

// ── Downloads ─────────────────────────────────────────
// FastDL base URL (see FastDL section below)
sv_downloadurl "https://yourcdn.example.com/garrysmod/"

// Allow clients to download custom content from the server directly (slower fallback)
sv_allowupload  1
sv_allowdownload 1

// ── Steam ─────────────────────────────────────────────
sv_setsteamaccount "YOUR_GSLT_TOKEN_HERE"

// ── Misc ──────────────────────────────────────────────
sv_cheats 0
sv_lan    0     // 0 = internet server; 1 = LAN only
Applying changes: Restart your server from GPanel after editing server.cfg, or use exec server.cfg in the server console for most settings. Some settings (e.g. maxplayers) require a full restart.

Key server.cfg Settings Reference

ConVar Example Value Description
hostname"My GMod Server"Display name in the server browser
sv_password"" or "secret"Server password; leave blank for public
maxplayers32Concurrent player slot limit
sv_gamemode"darkrp"Active gamemode folder name
sv_downloadurl"https://cdn.example.com/gmod/"FastDL base URL for client downloads
sv_setsteamaccount"ABCDEF..."Steam GSLT for public listing
sv_lan00 = internet, 1 = LAN only
sv_cheats0Enables/disables cheat commands

3. Popular Gamemodes

Garry's Mod supports many community gamemodes. The most popular ones are listed below. Each gamemode must be installed as an addon (see the Workshop section) and then set in server.cfg using sv_gamemode.

Gamemode sv_gamemode value Description
SandboxsandboxDefault GMod experience; build, spawn props, use tools. Included by default.
DarkRPdarkrpRoleplay gamemode with jobs, economy, and laws. The most popular GMod gamemode.
Trouble in Terrorist Town (TTT)terrortownSocial deduction — Traitors vs. Innocents. Included with GMod.
Prop Huntprop_huntHide-and-seek using props as disguises.
MurdermurderOne murderer hunts innocents; bystanders must identify the killer.
Sandbox and TTT are included with Garry's Mod. DarkRP, Prop Hunt, and Murder must be installed from the Workshop. See the Workshop section for how to add them via a collection or the startup line.

4. Workshop Collections

The easiest way to manage addons on a dedicated server is through a Steam Workshop collection. This lets you maintain a single collection on Steam and have the server automatically download and update all addons on startup.

Step 1 — Create a Workshop Collection

  1. Open the Garry's Mod Workshop and subscribe to the addons you want.
  2. Go to your Steam profile, click Workshop Items, then Collections, and click Create Collection.
  3. Add all desired addons to the collection, publish it as Public, and note the collection ID from its URL (e.g. steamcommunity.com/sharedfiles/filedetails/?id=123456789).

Step 2 — Add to Startup Parameters

In GPanel, go to your server's Startup tab and add or update the following parameters:

+host_workshop_collection 123456789
+workshop_addons 123456789

Replace 123456789 with your actual collection ID. Both parameters are typically used together: host_workshop_collection forces clients to download the collection, and workshop_addons loads the addons server-side.

Steam API Key required: Workshop downloads require a Steam Web API key. In GPanel under Startup, set the STEAM_API_KEY variable to a key generated at steamcommunity.com/dev/apikey.

Step 3 — Manual Addon Installation (Alternative)

You can also install addons manually by uploading them via SFTP to:

garrysmod/addons/

Each addon should be placed in its own subfolder, e.g. garrysmod/addons/darkrp/. See the SFTP upload guide for instructions.


5. DarkRP Setup

DarkRP is the most popular Garry's Mod gamemode and requires two addons working together: the base gamemode and a modification addon for customization.

Required Addons

AddonPurposeWorkshop ID
DarkRP The core gamemode. Place in garrysmod/gamemodes/darkrp/ 2975506321
DarkRPModification Your server's custom configuration (jobs, shipments, etc.). Place in garrysmod/addons/darkrpmodification/ 2975625920
DarkRP itself should live in the gamemodes/ folder, not in addons/. DarkRPModification goes in addons/. Getting these paths wrong is the most common DarkRP setup mistake.

Setting the Gamemode

In server.cfg, set:

sv_gamemode "darkrp"

Customizing DarkRP (DarkRPModification)

All customization is done inside garrysmod/addons/darkrpmodification/lua/darkrp_config/. Key files:

FileWhat it controls
settings.luaGlobal DarkRP settings (starting money, salary intervals, prop limits, etc.)
jobs.luaDefine custom jobs (police, mayor, drug dealer, etc.) with models, salaries, and permissions
shipments.luaDefine gun dealer shipments and their contents
entities.luaCustom buyable entities (money printers, meth labs, etc.)
categories.luaF4 menu category organization

Example: Adding a Custom Job

In jobs.lua inside DarkRPModification, add a block like:

TEAM_MEDIC = DarkRP.createJob("Medic", {
    color = Color(0, 200, 100),
    model = {"models/player/Group01/Female_04.mdl"},
    description = [[You are a medic. Heal the injured citizens of the city.]],
    weapons = {"weapon_medkit"},
    command = "medic",
    max = 3,
    salary = 75,
    admin = 0,
    vote = false,
    hasLicense = false,
    category = "Citizens",
})

After saving, restart the server. The new job will appear in the F4 menu.


6. FastDL Setup

By default, clients download custom content (addons, maps, sounds) directly from your game server, which is slow and limited by your server's bandwidth. FastDL allows clients to download files from a web server (HTTP/HTTPS) instead, resulting in much faster join times.

How FastDL Works

  1. You host a copy of the garrysmod/ content directory (or just the changed files) on a web server.
  2. You set sv_downloadurl in server.cfg to point to that web server's base URL.
  3. Clients follow that URL to download files at full HTTP speed instead of through the game protocol.

File Format — Compression

Valve's engine supports .bz2 compressed files for FastDL. For each file clients need to download (e.g. maps/rp_downtown_v4c_v2.bsp), you can optionally also place a .bz2 version alongside it. The client will prefer the compressed version if present.

Configuring sv_downloadurl

In server.cfg:

sv_downloadurl "https://yourcdn.example.com/garrysmod/"

The URL must end with a slash and the directory structure beneath it must mirror the garrysmod/ folder structure on the game server. For example, if a map is at garrysmod/maps/rp_downtown.bsp on the server, the FastDL URL should serve it at https://yourcdn.example.com/garrysmod/maps/rp_downtown.bsp.

Forcing Clients to Download Files

To force clients to download a file via FastDL, you must add it to a resource.lua file. Create or edit garrysmod/lua/autorun/server/resource.lua:

-- Force clients to download specific files
resource.AddFile("maps/rp_downtown_v4c_v2.bsp")
resource.AddFile("sound/mycustomsound.wav")
resource.AddSingleFile("materials/mycustommaterial.vmt")
If you are using Workshop addons, clients download those through Steam Workshop automatically. FastDL is mainly needed for custom maps, sounds, and materials that are not on the Workshop.

7. Connecting to Your Server

To find your server's IP address and port, check the Network tab in GPanel, or see the How to Find Your Server IP and Port guide.

Method 1 — Direct Connect in GMod

  1. Open Garry's Mod and click Find Multiplayer Game.
  2. Click Legacy Browser, then select the Favourites tab.
  3. Click Add a Server, enter your server IP and port (e.g. 123.45.67.89:27015), and click Add this address to favourites.
  4. Select the server in your favourites list and click Connect.

Method 2 — Steam Server Browser

  1. In Steam, click ViewGame Servers.
  2. Click the + button and enter your server IP and port.
  3. Click Add this address to favourites, then double-click it to connect.

Method 3 — Console Direct Connect

  1. Enable the developer console in GMod Options if it is not already on.
  2. Press ~ to open the console and type:
connect YOUR_SERVER_IP:PORT

Related Articles


Need help? If you run into issues not covered here, open a support ticket and include your server IP, a description of the problem, and any relevant console output.

Byl pro vás tento článek užitečný?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.