# How To Install Addons on Your Garry's Mod Server (/docs/garrys-mod/install-addons)



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

Garry's Mod supports Steam Workshop addons for adding maps, weapons, player models, tools, and game mode content. Here is how to install them.

Using a Workshop Collection [#using-a-workshop-collection]

The recommended way to install addons is through a Steam Workshop collection.

<div className="fd-steps">
  <div className="fd-step">
    Create a Workshop Collection [#1-create-a-workshop-collection]

    Go to the [Steam Workshop for Garry's Mod](https://steamcommunity.com/app/4000/workshop/) and click **Browse** > **Collections** > **Create Collection**. Add all the addons you want on your server to this collection.
  </div>

  <div className="fd-step">
    Get the Collection ID [#2-get-the-collection-id]

    Once your collection is published, copy the collection ID from the URL. It is the number at the end of the URL (e.g., `https://steamcommunity.com/sharedfiles/filedetails/?id=123456789`).
  </div>

  <div className="fd-step">
    Open the Startup Page [#3-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">
    Enter the Collection ID [#4-enter-the-collection-id]

    Find the **Workshop Collection ID** field and enter your collection ID.
  </div>

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

    Go to **Console** and restart your server. The addons will download automatically during startup.
  </div>
</div>

Adding Individual Addons [#adding-individual-addons]

If you prefer to add addons individually:

<div className="fd-steps">
  <div className="fd-step">
    Find the Addon ID [#1-find-the-addon-id]

    Find the addon on the Steam Workshop and copy the Workshop ID from the URL.
  </div>

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

    In the sidebar, click **Files**. Navigate to `garrysmod/lua/autorun/server/` and create or edit a file called `workshop.lua`.
  </div>

  <div className="fd-step">
    Add the Workshop Download [#3-add-the-workshop-download]

    Add a line for each addon:

    ```
    resource.AddWorkshop("123456789")
    resource.AddWorkshop("987654321")
    ```
  </div>

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

    Save the file and restart your server.

    > 📝 **Note:** Workshop addons are downloaded to the server automatically. Players connecting to the server will also download the addons when they join.

    > 💡 **Tip:** For game modes like DarkRP, TTT, or PropHunt, you will likely also need specific addons and configurations for that game mode. Check the game mode's documentation for required addons.

    > ⚠️ **Warning:** Too many large addons can significantly increase download times for players joining your server. Use [FastDL](/docs/garrys-mod/fastdl) to improve download speeds.
  </div>
</div>
