# How To Configure Your Garry's Mod Server (/docs/garrys-mod/configure-your-server)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Garry's Mod server configuration is handled through `server.cfg` and the **Startup** settings in your panel. Here is how to configure your server.

Using Startup Settings [#using-startup-settings]

<div className="fd-steps">
  <div className="fd-step">
    Open the Startup Page [#1-open-the-startup-page]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and select your Garry's Mod server. In the sidebar, click **Startup**.
  </div>

  <div className="fd-step">
    Adjust Settings [#2-adjust-settings]

    The Startup page provides fields for common settings including:

    * **Server Name** - Display name in the server browser
    * **Map** - Starting map
    * **Max Players** - Maximum player count
    * **Game Mode** - The game mode to run (sandbox, terrortown, darkrp, etc.)
    * **GSLT** - Your Game Server Login Token
    * **Workshop Collection ID** - Steam Workshop collection for addons
  </div>

  <div className="fd-step">
    Restart Your Server [#3-restart-your-server]

    After making changes, restart from the **Console** page.
  </div>
</div>

Editing server.cfg [#editing-servercfg]

<div className="fd-steps">
  <div className="fd-step">
    Open Files [#1-open-files]

    In the sidebar, click **Files**. Navigate to `garrysmod/cfg/` and open `server.cfg`.
  </div>

  <div className="fd-step">
    Edit Configuration [#2-edit-configuration]

    Common `server.cfg` settings:

    ```
    // Server Identity
    hostname "My GMod Server"
    sv_password ""
    rcon_password "yourrconpassword"

    // Network
    sv_maxrate 0
    sv_minrate 0
    sv_maxupdaterate 66
    sv_minupdaterate 33

    // Gameplay
    sbox_noclip 1
    sbox_godmode 0
    sbox_maxprops 150
    sbox_maxragdolls 10
    sbox_maxnpcs 10
    sbox_maxballoons 20
    sbox_maxeffects 10
    sbox_maxdynamite 5
    sbox_maxlamps 10
    sbox_maxthrusters 20
    sbox_maxwheels 20
    sbox_maxhoverballs 20
    sbox_maxvehicles 6
    sbox_maxbuttons 20
    sbox_maxemitters 5

    // Logging
    log on
    sv_logbans 1
    sv_logecho 1
    sv_logfile 1
    sv_log_onefile 0
    ```
  </div>

  <div className="fd-step">
    Save and Restart [#3-save-and-restart]

    Save the file and restart your server.
  </div>
</div>

Game Mode Configuration [#game-mode-configuration]

Each game mode may have its own configuration files:

* **Sandbox** - Uses the default `server.cfg` sandbox limits above
* **TTT** - Configuration in `garrysmod/cfg/` with TTT-specific convars
* **DarkRP** - Configuration in `garrysmod/addons/darkrpmodification/`
* **PropHunt** - Configuration through game mode-specific convars

> 📝 **Note:** The game mode is set in **Startup** and determines the core gameplay experience. Make sure you have the correct addons installed for your chosen game mode.
