Back to Templates
Garry's Mod
Garry's Mod
GameCP OfficialSandbox
Verified

Garry's Mod

Dedicated Server Template

Garry's Mod is a physics sandbox. There aren't any predefined aims or goals. We give you the tools and leave you to play.

v22
2/25/2026

Garry's Mod Game Server Hosting

Deploy and manage your own Garry's Mod dedicated server with GameCP's free game server control panel. This template provides a production-ready server configuration with one-click installation, automatic updates via SteamCMD, and full environment variable management. Whether you're hosting for a small group of friends or running a large community server, GameCP makes Garry's Mod server administration simple and reliable.

Free Control PanelOne-Click DeployAuto UpdatesDocker Containerized
Full Hosting Guide

Ready to host Garry's Mod?

Read our complete step-by-step guide covering installation, configuration, performance tuning, and getting your server online in minutes.

Resource Requirements

CPU Cores
2
Memory
1.0 GB(max 4 GB)
Storage
10 GB

Recommended Players

24
Recommended
Min: 2Max: 64

Performance Tiers

Economy

Small sandbox, 2-12 players

RAM1 GB
CPU Shares256
Recommended

Standard

Community server, 12-32 players

RAM1 GB
CPU Shares512

Pro

Large public server, 32-64 players

RAM4 GB
CPU Shares1024

Startup Command

#!/bin/bashBash shell with full features

Default

Standard Garry's Mod SRCDS startup

Default

High Tickrate (100)

High performance tickrate. Better physics and addon responsiveness. Recommended for serious RP or combat servers.

Environment Variables

SERVER_NAME

Required

Server Name

Server name displayed in the server browser

Default
(empty)

MAX_PLAYERS

Required

Max Players

Maximum number of concurrent players

Default
24

STEAM_TOKEN

Game Server Login Token

Create one with App ID `4020` at [Steam GSLT Management](https://steamcommunity.com/dev/managegameservers) to publicly list your server.

Default
(empty)

SRCDS_MAP

Required

Map

The default map for the server

Default
gm_flatgrass

GAMEMODE

Required

Gamemode

The gamemode for the server (e.g. sandbox, terrortown, prophunt)

Default
sandbox

WORKSHOP_ID

Workshop Collection ID

Workshop collection ID (the numbers at the end of the collection URL)

Default
(empty)

TICKRATE

Required

Tickrate

Server tickrate. Higher values increase precision at the cost of CPU usage.

Default
22

LUA_REFRESH

Lua Refresh

Enable Lua auto-refresh for development

Default
0

STEAM_USER

Read Only

Steam Username

Steam username for authentication. Leave empty for anonymous login.

Default
(empty)

STEAM_PASS

Read Only

Steam Password

Steam password for authentication. Leave empty for anonymous login.

Default
(empty)

STEAM_AUTH

Read Only

Steam Auth Code

Steam Guard authentication code (if required)

Default
(empty)

EXTRA_FLAGS

Read Only

Extra SteamCMD Flags

Additional SteamCMD flags

Default
(empty)

Lifecycle Scripts

Post-Install Setup

Creates default workshop.lua and server.cfg files after SteamCMD install

after installghcr.io/pterodactyl/installers:debian

Configuration Files

Server Config

Main server configuration file for Garry's Mod

garrysmod/cfg/server.cfgfile
0 fields

Container Configuration

Docker Image

ghcr.io/ptero-eggs/games:source

Technical Profile

Template ID

garrys-mod

Author

GameCP Team

Last Updated

February 25, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

2

Source

gamecp