Skip to main content

Introduction to Garry’s Mod Server Configuration

Properly configuring your Garry’s Mod server is essential for creating the best experience for your players. This guide walks you through the various configuration files and options available on the Wasabi Hosting Gamepanel.

Core Configuration Files

Garry’s Mod uses several key configuration files:

Basic Server.cfg Setup

The server.cfg file is the primary configuration file for your Garry’s Mod server. Here’s a basic template:
Always change the default rcon_password! Using a default or easy-to-guess password exposes your server to potential hijacking.

Workshop Configuration

To use Workshop content on your Wasabi Hosting server:
  1. Create a workshop collection on Steam
  2. Add the collection ID to your Gamepanel startup parameters:
  3. Additionally, you can create a workshop.vdf file in the /garrysmod/settings/ directory:
Wasabi Hosting provides optimized networks for workshop downloads, but FastDL is still recommended for frequently used content.

FastDL Setup

FastDL allows players to download custom content much faster:
1

Create a web server

Set up a web server with sufficient storage space
2

Compress content

Use bzip2 to compress resource files:
3

Upload compressed files

Upload the compressed files to your web server, maintaining the folder structure
4

Configure FastDL

Add to your server.cfg:

Gamemode Configuration

Each gamemode has its own configuration files and options:
DarkRP settings are managed in these files:
  • /garrysmod/addons/darkrpmodification/lua/darkrp_config/settings.lua - General settings
  • /garrysmod/addons/darkrpmodification/lua/darkrp_config/disabled_defaults.lua - Features to disable
  • /garrysmod/addons/darkrpmodification/lua/darkrp_customthings/jobs.lua - Custom jobs
  • /garrysmod/addons/darkrpmodification/lua/darkrp_customthings/shipments.lua - Custom shipments
  • /garrysmod/addons/darkrpmodification/lua/darkrp_customthings/entities.lua - Custom entities
If your server uses a MySQL database for DarkRP data, configure it in /garrysmod/addons/darkrpmodification/lua/darkrp_config/mysql.lua:
Never share your MySQL credentials publicly and use a strong password.
For large DarkRP servers, consider using a properly configured MySQL database instead of SQLite for better performance with many players.

Admin Mod Configuration

ULX (Ulysses Admin Mod) settings are stored in multiple files:
  • /garrysmod/data/ulx/config.txt - Main ULX configuration
  • /garrysmod/data/ulib/groups.txt - User groups and permissions
  • /garrysmod/addons/ulx/lua/ulx/modules/sh/ - Module configurations
Important files to customize:
  1. groups.txt example:
  1. Creating custom groups:

MySQL Configuration

Many addons (especially DarkRP) support MySQL databases:
  1. Create a MySQL database on your hosting provider
  2. Configure your database details in the appropriate files:
For DarkRP:
For FAdmin:
Store database passwords securely and never share your database credentials with anyone you don’t trust completely.

Content Mounting

To use content from other Source games (CS:S, HL2, etc.), configure the mount.cfg file:
On a Gamepanel, you’ll need to use the SteamCMD to download this content to your server first.

Startup Parameters

Configure these in the Gamepanel’s Startup tab:

RCON Configuration

Remote Console (RCON) allows you to administer your server remotely:
  1. Set a strong RCON password in server.cfg:
  2. Connect to your server’s RCON using:
    • An RCON tool like HLSW or SourceAdmin
    • The in-game console with rcon_password followed by rcon commands
    • Gamepanel’s built-in console
RCON passwords are transmitted in plain text unless you’re using a secure connection. Always use strong, unique passwords.

Map Rotation

Configure map rotation in your server.cfg:
Then create a mapcycle.txt file in the /garrysmod/cfg/ directory:

Server Logging

Configure logging to track server activity:
Logs are stored in /garrysmod/logs/

Optimization Configurations

Use these settings for better server performance:

DDoS Protection

Configure basic DDoS protection:
For more comprehensive DDoS protection, consider using our Firewall Manager.

Gamemode-Specific Configuration Examples

Source Engine Mounting (Optional)

Mount content from other Source games for additional assets:
  1. Ensure the content is installed on your server On a Gamepanel, you’ll need to use the SteamCMD to download this content to your server first.
  2. Configure mount points in mount.cfg
  3. Add these to your startup parameters
Configure these in the Gamepanel’s Startup tab:

Server Monitoring

Monitor your server’s health using:
  • Console log analysis
  • Third-party monitoring tools
  • Resource utilization graphs
  • Gamepanel’s built-in console
By following this configuration guide, you can create a well-optimized and properly configured Garry’s Mod server on Wasabi Hosting. If you need further assistance, contact our support team.

Get your own Garry's Mod server

Deploy a DDoS-protected Garry’s Mod server on AMD Ryzen hardware in about two minutes. Plans start at €12.50/month.