LogoLogo
  • Home
  • Getting Started
  • Configuration
    • LinuxGSM Config
    • Game Server Config
    • Start Parameters
    • cronjobs
    • Running on Boot
    • Running Multiple Game Servers
    • IP Address Configuration
    • LinuxGSM Stats
  • Commands
    • install
    • start-stop-restart
    • monitor
    • test-alert
    • console
    • debug
    • update
    • check-update
    • force-update
    • validate
    • update-lgsm
    • backup
    • map-compressor
    • details
    • mods
    • skeleton
    • fastdl
    • change-password
  • Game Servers
    • 7 Days to Die
    • Arma 3
    • ARK: Survival Evolved
    • Call of Duty 4
    • Dont Starve Together
    • Counter-Strike 2
    • Counter-Strike: Global Offensive
    • Factorio
    • Garry's Mod
    • Insurgency: SandStorm
    • Killing Floor 2
    • Minecraft: Java Edition
    • Multi Theft Auto
    • Rust
    • Sven Co-op
    • Trackmania Nations Forever / Trackmania United Forever
    • TeamSpeak 3
    • Unreal Tournament 99
    • Unreal Tournament 2004
    • Unreal Tournament 3
    • Valheim
    • Xonotic
    • The Front [WIP]
  • Networking
    • IP Address
    • Ports
    • Source Engine
  • Alerts
    • Discord
    • Email
    • IFTTT
    • Pushbullet
    • Pushover
    • Rocket.Chat
    • Slack
    • Telegram
  • Dependencies
    • Java
    • tmux
    • jq
    • gamedig
    • glibc
  • Features
    • ANSI Colors
    • Stop Mode
    • Log Management
    • Message Display Time
  • SteamCMD
    • Steam Master Server
    • Game Server Login Token
    • Branch
    • LAN Discovery
    • Workshop
    • Error Codes
  • Linux
    • distro
    • ftp-scp
    • file-ownership
    • firewalls
    • network-interfaces
    • permissions
    • Symlinking and ln command
  • Troubleshooting
  • FAQ
  • Guides
    • Security
    • Make Webserver Case Insensitive
    • Sourcemod and Metamod:Source
  • Other
    • server-migration
    • basic-usage
    • brand
Powered by GitBook
On this page
  • Game Resources
  • Auto Refresh
  • Loading Screen
  • Gamemode
  • Workshop
  • Mounting Game Content
Edit on GitHub
Export as PDF
  1. Game Servers

Garry's Mod

PreviousFactorioNextInsurgency: SandStorm

Last updated 1 year ago

Game Resources

Auto Refresh

Autorefresh can lag the server when certain Lua files are edited. This happens when the refreshing cascades. This can be unwanted behavior when editing the scripts of a large project on a live server.

To disable autorefresh, add -disableluarefresh to parms.

 -disableluarefresh

Loading Screen

Loading screens are added by defining a website with sv_loadingurl, which is in gmodserver.cfg by default. This file overrides other files.

Links should not have http:// or an ending/ .

sv_loadingurl "www.website.com/loading/screen"

Gamemode

Gamemode is changed by editing start parameters in the LinuxGSM config file.

TTT     gamemode="terrortown"
Sandbox gamemode="sandbox"

Workshop

Garry's Mod does not require an API/Auth Key anymore.

wscollectionid="157384458"

Mounting Game Content

Some Garry's Mod addons like TTT use content from other games. To do this the content will need to be "mounted".

All source engine games should be mountable.

This guide is for installing another game server with LinuxGSM and using that content, copying that game's files, and mounting the game to Garry's Mod. This guide is for CS:S but should work for any other game.

There are multiple ways to potentially mount content. The below example is just one example

First install a Counter-Strike: Source server, if you already have a server installed this step can be skipped. If the server will be deleted after copying files.

Copy the cstrike the directory from the Counter-Strike: Source to the Gmod folder.

cp -R /home/cssserver/serverfiles/cstrike /home/gmodserver/serverfiles/cstrike

Ensure that the copied files are owned by the gmodserver user.

chown -R gmodserver /home/gmodserver

Open mount.cfg file.

nano /home/gmodserver/serverfiles/garrysmod/cfg/mount.cfg

Add game to mount.cfg

"mountcfg"
{
         "cstrike"      "/home/gmoduser/serverfiles/cstrike"
}

Restart the server. Check if the mount was successful by changing the level to a mounted map with console or rcon.

changelevel cs_italy

Other game modes like Zombie Survival can be found on the .

For Garry's Mod, add the collection ID in using wscollectionid setting. This will download the collection when the server starts.

Garry's Mod Wiki
steam workshop
Workshop
LinuxGSM config
Install CS:S Server with LinuxGSM