How to Set Up a GMod DarkRP Server

  • 8 min read
  • Updated 12 June 2026
  • ESAGAMES Team

Build your own Garry's Mod DarkRP server — install GMod with SteamCMD, add the DarkRP gamemode, load a Workshop collection, configure jobs and a persistent MySQL economy. Plus the managed route.

DarkRP is the most popular Garry's Mod roleplay gamemode. You install the GMod dedicated server with SteamCMD (app 4020), add DarkRP, then customise jobs, entities and the economy.

A busy DarkRP server needs a strong CPU (GMod is single-thread heavy), a MySQL database for persistence, and Anti-DDoS — RP communities are heavily targeted.

What you'll need

  • SteamCMD installed, and the GMod server (app 4020) downloaded.
  • The DarkRP gamemode (plus DarkRPModification for safe edits).
  • A Steam Workshop collection of your addons and its collection ID.
  • A MySQL database (via mysqloo) for a persistent economy.
  • A strong single-core CPU (GMod is single-thread heavy).

Set up a Garry's Mod DarkRP server

  1. Step 1: Install the GMod server (app 4020)

    Use SteamCMD to download the Garry's Mod dedicated server.

    steamcmd +login anonymous +app_update 4020 validate +quit
  2. Step 2: Install DarkRP

    Place the DarkRP gamemode (and DarkRPModification for safe edits) in the gamemodes folder, and set gamemode to darkrp in your server.cfg.

    gamemode darkrp
    hostname "My ESAGAMES DarkRP"
  3. Step 3: Add a Workshop collection

    Create a Steam Workshop collection of your addons and set its ID with +host_workshop_collection so clients auto-download content.

    ./srcds_run -game garrysmod +gamemode darkrp +map rp_downtown_v4c_v2 +host_workshop_collection YOUR_COLLECTION_ID
  4. Step 4: Configure jobs & entities

    Edit the DarkRPModification files to add custom jobs, shipments, entities and money settings without touching core DarkRP.

  5. Step 5: Set up a MySQL economy

    Connect a MySQL database (via mysqloo) so player money, levels and data persist across restarts.

  6. Step 6: Launch and connect

    Start the server and connect in GMod via the console to your IP and port (27015 by default).

    connect your-server-ip:27015

DarkRP best practices

  • High-clock CPU

    GMod is single-thread heavy. Fast CPU keeps a busy DarkRP server smooth.

  • Use MySQL

    A database makes money, levels and data persistent — essential for a serious RP server.

  • Anti-DDoS

    DarkRP communities get attacked constantly. Filtering keeps you online.

Common problems & fixes

Clients don't download my addons

You haven't set +host_workshop_collection with your collection ID, or the collection/items aren't public.

My job/economy edits get wiped on update

Make changes in DarkRPModification, not core DarkRP, so updates don't overwrite them.

Money/levels reset on restart

Your MySQL connection isn't configured. Set up mysqloo and your database credentials for persistence.

Server lags with many players

GMod is CPU-bound and addon-heavy. Use a fast CPU and trim unnecessary addons.

Frequently asked questions

How do I set up a DarkRP server?

Install the GMod dedicated server (app 4020) via SteamCMD, add the DarkRP gamemode, set gamemode to darkrp, load a Workshop addon collection, configure jobs and a MySQL economy, then launch.

How do I add addons?

Create a Steam Workshop collection and set its ID with +host_workshop_collection so clients automatically download your content.

Do I need MySQL?

For a persistent economy (money, levels) yes — connect MySQL via mysqloo so data survives restarts.

How do I add custom jobs?

Use DarkRPModification to add jobs, shipments and entities without editing core DarkRP, so updates don't overwrite your changes.

How many slots for DarkRP?

Busy DarkRP communities run 32–64 slots. High counts want a strong CPU.

Is it DDoS protected with you?

On our managed Garry's Mod hosting, yes — filtered through our multi-Tbps Frankfurt network.

What port does a Garry's Mod DarkRP server use?

UDP 27015 for the game and query by default. Forward it so players can connect and the server appears in the browser. You'll also want FastDL (an HTTP host) so players download your Workshop content quickly on join.

How do I add jobs and a economy to DarkRP?

Custom jobs, shipments and entities go in your DarkRP custom files (jobs.lua, shipments.lua and friends), and the money economy persists through a MySQL database once you configure mysqloo. Edit the custom files, restart, and the new jobs appear in the F4 menu.

Why is my DarkRP server lagging or stuttering?

Usually too many heavy addons, a huge Workshop collection or props left in the world. Garry's Mod is single-thread heavy, so a fast CPU helps; trim unused addons, set a sensible prop limit, and use FastDL so joins don't stall the server.

Fixes for when it goes wrong

Knowledge-base fixes that pair with this guide — the errors people hit after setup.

More guides

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.