xgaming.configs
configs/gmod
Garry's Mod server config
1 file

Garry's Mod Server Config

server.cfg for Garry's Mod dedicated servers, ready for DarkRP, Sandbox, TTT and Murder gamemodes.

Config files

server.cfg
// ****************************************************************************
// Garry's Mod
// Config server.cfg
// Date 06/12/2023
// ****************************************************************************

// hostname - Hostname for server.
hostname "SERVERNAME"

// rcon_password - RCON remote console password.
rcon_password "ADMINPASSWORD"

// sv_password - Server password for entry into multiplayer games.
sv_password ""

// map - Start playing on specified map.
// map "gm_construct"

// mapcyclefile - Name of the .txt file used to cycle the maps on multiplayer servers
mapcyclefile "mapcycle.txt"

// sv_lan - Server is a lan server ( no heartbeat, no authentication, no non-class C addresses ).
sv_lan 0

// sv_logfile - Log server information in the log file.
sv_logfile 1

// sv_logbans - Log server bans in the server logs.
sv_logbans 1

// sv_voiceenable - Enable voice communications.
sv_voiceenable 1

// sv_alltalk - Players can hear all other players, no team restrictions.
sv_alltalk 1

// sv_allowupload - Allow clients to upload customizations files.
sv_allowupload 0

// sv_allowdownload - Allow clients to download files.
sv_allowdownload 0

// sv_downloadurl - Location from which clients can download missing files.
sv_downloadurl ""

// sv_loadingurl - URL to show to clients while joining the server. Must start with http:// or https://
sv_loadingurl ""

// sbox_bonemanip_misc - If enabled then manipulating the bones of other entities will be allowed
sbox_bonemanip_misc 0

// sbox_bonemanip_npc - If enabled then manipulating NPC bones will be allowed
sbox_bonemanip_npc 1

// sbox_bonemanip_player - If enabled then manipulating Player bones will be allowed
sbox_bonemanip_player 0

// sbox_godmode - If enabled, all players will be invincible
sbox_godmode 0

// sbox_maxballoons - Maximum balloons a single player can create
sbox_maxballoons 10

// sbox_maxbuttons - Maximum buttons a single player can create
sbox_maxbuttons 20

// sbox_maxcameras - Maximum cameras a single player can create
sbox_maxcameras 10

// sbox_maxdynamite - Maximum dynamites a single player can create
sbox_maxdynamite 0

// sbox_maxeffects - Maximum effect props a single player can create
sbox_maxeffects 0

// sbox_maxemitters - Maximum emitters a single player can create
sbox_maxemitters 0

// sbox_maxhoverballs - Maximum hoverballs a single player can create
sbox_maxhoverballs 20

// sbox_maxlamps - Maximum lamps a single player can create
sbox_maxlamps 5

// sbox_maxlights - Maximum lights a single player can create
sbox_maxlights 5

// sbox_maxnpcs - Maximum NPCs a single player can create
sbox_maxnpcs 10

// sbox_maxprops - Maximum props a single player can create
sbox_maxprops 100

// sbox_maxragdolls - Maximum ragdolls a single player can create
sbox_maxragdolls 50

// sbox_maxsents - Maximum entities a single player can create
sbox_maxsents 100

// sbox_maxthrusters - Maximum thrusters a single player can create
sbox_maxthrusters 20

// sbox_maxvehicles - Maximum vehicles a single player can create
sbox_maxvehicles 1

// sbox_maxwheels - Maximum wheels a single player can create
sbox_maxwheels 20

// sbox_noclip - If enabled, players will be able to use noclip
sbox_noclip 0

// sbox_persist - If not empty, enables 'Make Persistent' option when you right click on props while holding C, allowing you to save them across
sbox_persist 0

// sbox_playershurtplayers - If enabled, players will be able to hurt each other
sbox_playershurtplayers 0

// sbox_weapons - If enabled, each player will receive default Half-Life 2 weapons on each spawn
sbox_weapons 0

What these settings mean

Quick reference for the 11 most important keys in this Garry's Mod config. Hover or tap any key to see what it controls — useful when you're tuning a server for the first time and don't want to grep through the upstream wiki.

Core
2 settings
hostname
Server name shown in the in-game browser. Keep it under 64 characters and avoid colour codes if you want clean Steam listings.
sv_password
Optional join password. Empty string means a public server.
Network
4 settings
sv_lan
1 forces LAN-only mode (no Steam heartbeat). Set 0 for any internet-facing server.
sv_allowupload
1 lets clients upload custom sprays. Disable to mitigate inappropriate content / exploits.
sv_allowdownload
1 lets clients download missing maps / models from the server. Slow — better to pair with sv_downloadurl.
sv_downloadurl
Fast-DL HTTP URL for clients to fetch missing assets. Massively faster than Source's built-in trickle download.
Voice
2 settings
sv_voiceenable
Master switch for in-game voice chat. 1 enabled, 0 disabled server-wide.
sv_alltalk
1 lets dead players hear the living and both teams hear each other. Off by default for competitive integrity.
RCON
1 setting
rcon_password
Remote console password. Use a long random string — Source RCON is unencrypted, so anyone sniffing your wire can grab it if it's weak.
Logging
2 settings
sv_logfile
1 writes log lines to disk in addition to stdout.
sv_logbans
1 logs ban / kick events. Always on for any moderated server.

More sandbox & building configs

Skip the setup. Host Garry's Mod with XGamingServer.

Spin up a managed Garry's Mod server with one click. Backups, mods, control panel and DDoS protection included.