Skip to content
RXCORP RXCORP Game Hosting
  • Minecraft From €2.99 • Paper, Purpur, Forge FiveM (GTA V) From €3.49 • txAdmin & MariaDB Assetto Corsa Drift, Trackday & Freeroam Assetto Corsa EVO €7.99 • Dedicated EVO server Garry's Mod From €3.99 • Sandbox, TTT & DarkRP Palworld Dedicated €9.99 • 8 GB & Native Linux Valheim Dedicated €5.99 • 10 players & crossplay Discord Bot €1.49 • Node.js or Python
    View all plans →
  • Launcher
  • Guides
  • Forum
  • All Plans
  • Infrastructure
  • Status
Client Portal ↗
Home › Guides › Garry's Mod

Create a Garry's Mod DarkRP server: Workshop, configuration and administration

This guide covers installing DarkRP, the Workshop collection, server.cfg, configuration through darkrpmodification, ULX, the GSLT token and MySQL on the Pelican panel.

By Salem ASSADI • Published 5 November 2026 • Updated 25 November 2026 • Related plan: Garry's Mod server

What to know before creating a DarkRP server

DarkRP is the most widespread roleplay gamemode on Garry's Mod: jobs, salaries, in-game money, doors to buy, police and laws. Unlike Sandbox, it does not ship with the game: you have to install it, configure it, then distribute all the required content to players (map, models, textures). That last step is behind most of the problems new admins run into: purple and black textures, "ERROR" models, players stuck on loading or a server that cannot be found in the list.

This guide explains how to create a Garry's Mod DarkRP server from start to finish: installing the gamemode, startup parameters, Workshop collection, server.cfg, configuring DarkRP through the darkrpmodification addon, administration with ULX, the Steam GSLT token, an optional MySQL database and troubleshooting. The examples are based on the RXCORP Garry's Mod server plan, managed from the Pelican panel, but the method applies to any Linux Garry's Mod dedicated server.

Prerequisites

  • An installed Garry's Mod server. At RXCORP, it is delivered automatically within a few minutes of payment.
  • Access to the panel.rxcorp.me panel: Console, Files, Databases, Schedules, Backups, Startup and Settings tabs (the latter shows your SFTP details).
  • A non-limited Steam account, to create the Workshop collection and the GSLT token.
  • An SFTP client (FileZilla, WinSCP) to transfer large addons.

As for plans, Garry's Mod Sandbox / TTT (€3.99/month: 2 GB RAM, 1 vCPU, 15 GB SSD, 1 backup) suits lightweight gamemodes. DarkRP, which is heavier on addons and memory, is better served by the Garry's Mod DarkRP plan (€6.99/month: 4 GB RAM, 1.5 vCPU, 25 GB SSD, 2 backups, 1 MySQL database). Garry's Mod servers run on an Intel Core i7-8700K node, described on the infrastructure page. Plans are monthly with no commitment.

Step 1: install DarkRP and darkrpmodification

On RXCORP's Garry's Mod DarkRP plan: DarkRP and darkrpmodification are already installed on delivery, with the darkrp gamemode and the gm_construct map (checked on a server delivered on 25 November 2026). You can skip to step 2. The procedure below is for the Sandbox / TTT plan or any other Garry's Mod server.

DarkRP is made of two separate parts, both published on GitHub by its author (DarkRP and darkrpmodification):

  • the gamemode, which goes in garrysmod/gamemodes/darkrp/;
  • the darkrpmodification addon, which goes in garrysmod/addons/darkrpmodification/ and holds all of your configuration.

The expected directory tree:

garrysmod/
    gamemodes/
        darkrp/
    addons/
        darkrpmodification/
            lua/darkrp_config/
            lua/darkrp_customthings/
    cfg/
        server.cfg

An archive downloaded from GitHub produces a folder such as DarkRP-master: rename it to exactly darkrp, lowercase and without spaces, otherwise the gamemode will not be found. Then upload the folders via SFTP or the Files tab, with the server stopped.

Warning: never edit the files in gamemodes/darkrp/. A gamemode update would replace them and your changes would be lost. All customization (jobs, entities, settings) belongs in darkrpmodification.

Step 2: set the gamemode, map and collection at startup

A Garry's Mod dedicated server receives its main parameters on its command line. For DarkRP, the essentials are:

+gamemode darkrp +map rp_downtown_v4c_v2 +maxplayers 32 +host_workshop_collection 1234567890 +sv_setsteamaccount YOUR_GSLT_TOKEN
  • +gamemode darkrp: name of the gamemode folder in gamemodes/.
  • +map: map loaded at startup. It must be present on the server, in garrysmod/maps/ or through the Workshop collection.
  • +maxplayers: number of slots.
  • +host_workshop_collection: ID of the Workshop collection the server downloads at startup (step 3).
  • +sv_setsteamaccount: GSLT token (step 7).

On the Pelican panel, the startup command is managed by the server template: you do not edit it directly, you fill in the matching variables in the Startup tab (map, gamemode, Workshop collection, token). Then restart the server to apply them.

Step 3: create the Workshop collection and send content to players

The Steam Workshop is the easiest way to distribute the map and addons. The procedure:

  1. From the Garry's Mod Workshop page on Steam, create a collection.
  2. Add the map and the content addons (models, vehicles, textures) your server needs.
  3. Make the collection public: the server must be able to read it.
  4. Note its ID, the number after ?id= in the page address.
  5. Enter it in the Workshop collection variable of the Startup tab, then restart.

The collection makes the server download the content. For players to download it in turn when they connect, declare each content addon in a server-side Lua file, for example garrysmod/lua/autorun/server/workshop.lua:

-- One Workshop addon ID per line (not the collection ID)
resource.AddWorkshop("111111111") -- map
resource.AddWorkshop("222222222") -- model pack
resource.AddWorkshop("333333333") -- vehicles

For content that is not on the Workshop, the alternative is FastDL: a web server that mirrors the garrysmod/ directory tree (files optionally compressed as .bz2), set with sv_downloadurl, plus a resource.AddFile("path/to/file") call for each file to send. For most servers, the Workshop remains easier to maintain.

Keep the collection reasonable: every addon lengthens server startup and the players' first load.

Step 4: write the server.cfg

The garrysmod/cfg/server.cfg file runs on every startup. A starting point:

hostname "My DarkRP server"
sv_password ""
rcon_password "ALongAndUniquePassword"
sv_lan 0
sv_region 3
sv_loadingurl ""
sv_downloadurl ""
  • hostname: name shown in the server list.
  • sv_password: join password. Leave "" for a public server.
  • rcon_password: RCON password. An empty value disables RCON; the panel console is enough to administer the server. If you enable it, pick a long password that you use nowhere else.
  • sv_lan 0: required for a server reachable from the Internet.
  • sv_region 3: Europe region in the server browser.
  • sv_loadingurl: web page shown during loading (optional).
  • sv_downloadurl: FastDL address, leave empty if you only use the Workshop.

If a value also exists as a variable in the Startup tab, change that variable instead: it may be reapplied on every startup.

Step 5: configure DarkRP

General settings

Global settings live in darkrpmodification/lua/darkrp_config/settings.lua. The file is commented: only change the values you need. Example:

GM.Config.startingmoney = 5000
GM.Config.normalsalary  = 45
GM.Config.currency      = "€"

The disabled_defaults.lua file, in the same folder, lets you disable the default jobs, entities or modules: set the relevant entries to true.

Jobs and items

Jobs are declared in lua/darkrp_customthings/jobs.lua; the same folder also contains entities.lua, shipments.lua and categories.lua, among others. A typical job:

TEAM_GUNSMITH = DarkRP.createJob("Gunsmith", {
    color = Color(255, 140, 0, 255),
    model = {"models/player/monk.mdl"},
    description = [[Sells weapons to other players.]],
    weapons = {},
    command = "gunsmith",
    max = 2,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false,
    category = "Citizens",
})

A single missing comma or brace is enough to cause a Lua error at startup: read the console after each change and restart the server to apply your edits.

Step 6: install ULX and ULib for administration

ULX (admin menus and commands) depends on the ULib library: always install both, either through the Workshop collection or by placing the ulib and ulx folders in garrysmod/addons/. After a restart, grant yourself rights from the panel's Console tab:

ulx adduser "YourName" superadmin
ulx adduserid STEAM_0:1:12345678 superadmin

The first command targets a connected player, the second works with their SteamID, even offline. In game, the !menu chat command opens the admin interface (groups, permissions, sanctions). Groups and users are stored in garrysmod/data/ulib/: include that folder in your backups.

Step 7: add a Steam GSLT token

Without a valid Game Server Login Token (GSLT), your server does not show up in the Garry's Mod Internet list, even though it remains reachable by IP address. To create one:

  1. Go to steamcommunity.com/dev/managegameservers.
  2. Enter App ID 4000 (Garry's Mod) and a memo to keep track of it.
  3. Copy the generated token into the dedicated variable in the Startup tab (equivalent to +sv_setsteamaccount), then restart.
Important: a token must be used by one server only and must never be shared. If it has leaked, regenerate it from the same page: the old one then stops working.

Step 8: use MySQL for DarkRP (optional)

By default, DarkRP stores money and player data in the server's local SQLite database (garrysmod/sv.db), which is enough for a single server. MySQL becomes useful to share data across several servers or to work with it from external tools. The DarkRP plan includes one MySQL database:

  1. Create the database in the Databases tab and note the host, port, name, user and password.
  2. Install the MySQLOO binary module in garrysmod/lua/bin/, in the build that matches the server architecture (32 or 64-bit).
  3. Fill in darkrpmodification/lua/darkrp_config/mysql.lua:
RP_MySQLConfig.EnableMySQL = true
RP_MySQLConfig.Host = "address_shown_in_the_panel"
RP_MySQLConfig.Username = "user"
RP_MySQLConfig.Password = "password"
RP_MySQLConfig.Database_name = "database_name"
RP_MySQLConfig.Database_port = 3306
RP_MySQLConfig.Preferred_module = "mysqloo"

Restart and check the console for connection errors. Existing SQLite data is not migrated automatically: decide on the storage backend before opening to the public.

Troubleshooting common errors

Purple and black textures, "ERROR" models

The content is not mounted on the player's side. Check that every content addon is declared with resource.AddWorkshop, that the collection is public and that you used the addon ID rather than the collection ID. Some roleplay maps also rely on Counter-Strike: Source content, which each player must own and mount in their game.

Players stuck on loading

The download size is often to blame: slim down the collection and remove unused addons. A client-side Lua error can also freeze the connection; read the server console, then remove recently added addons one at a time to find the culprit. If you use FastDL, check that the sv_downloadurl address responds and that its tree matches the server's.

The server does not appear in the list

Check in this order: GSLT token present, valid and used by this server only; sv_lan 0; the player's server browser filters (gamemode, map, full servers). In the meantime, players can join with connect IP_ADDRESS:PORT in the game console, using the address shown in the panel. If in doubt about the network, check status.rxcorp.me.

The server starts in Sandbox or shows Lua errors

Starting in Sandbox means the gamemodes/darkrp folder is missing or misnamed. Lua errors at startup almost always point to a file in darkrpmodification: the console gives the file and line.

Conclusion

A reliable DarkRP server comes down to a few principles: keep the gamemode and its configuration separate, pair a public Workshop collection with resource.AddWorkshop, keep a clean server.cfg, grant ULX rights from the console and use a valid GSLT token. To launch your community on a machine with the Pelican panel, SFTP, backups and always-on DDoS filtering, see the RXCORP Garry's Mod server plan. Support is available on Discord and through tickets. More tutorials are available in the guides section.

Related guides

  • Installing QBCore or ESX on a FiveM server
  • Host a Discord bot: discord.js and discord.py on the Pelican panel

Related plan: Garry's Mod server • All Garry's Mod guides

RXCORP

Independent game server hosting provider. Physical AMD Ryzen 7 and Intel Core i7 servers, SSD storage and always-on DDoS filtering.

Direct contact: [email protected]

Secure payments:
Card PayPal Stripe

Game Servers

  • Minecraft Server
  • FiveM Server
  • Assetto Corsa Server
  • Assetto Corsa EVO Server
  • Garry's Mod Server
  • Palworld Server
  • Valheim Server
  • Discord Bot Hosting
  • Free 24-hour Minecraft server
  • All Game Plans

Services & Tools

  • RXLauncher
  • Technical Guides
  • RX RACING: public Assetto Corsa EVO servers
  • Community forum
  • Paymenter Client Portal ↗
  • Pelican Console ↗
  • Infrastructure & Hardware
  • Network Status ↗
  • Discord ↗
  • TikTok ↗

Legal Information

  • Legal Notice
  • Terms of Service (CGV/CGU)
  • Privacy Policy
  • Refund Policy
  • Support Contact
  • About Us

RXCORP (Salem ASSADI), sole proprietorship, SIRET 102 767 050 00010 • VAT not applicable, art. 293 B of French CGI

Sitemap • FR | EN