How to Set Up a DarkRP Server on Garry's Mod
DarkRP is a roleplay gamemode where players take jobs, earn money and follow server rules. It is not built into Garry's Mod, so it must be installed.
Install DarkRP
- Download DarkRP from its official source or GitHub page.
- Using the Files tab, upload the darkrp folder into garrysmod/gamemodes.
- Also add the DarkRPModification addon into garrysmod/addons, which is where you edit your jobs and settings.
Set the gamemode and map
Add these to your startup command:
- +gamemode darkrp
- +map rp_downtown_v4c_v2
RP maps usually start with rp_ and normally come from the Workshop. Add the map through your collection, and make sure its content reaches players.
Customise
Inside the darkrpmodification addon you will find Lua files for jobs, shipments, entities, categories and settings. Edit these rather than the core gamemode files, so updates do not overwrite your work. Make changes on a copy first if you are unsure, then restart the server.
Database
DarkRP stores data in a local SQLite database by default. Larger servers sometimes switch to MySQL using the MySQLOO module, but that is optional and needs extra setup. Ask us on Discord if you want help deciding.
Admin and rules
Install ULX or another admin mod, and write clear rules in a MOTD or chat message. Roleplay servers depend on active staff.
Troubleshooting
- Server falls back to Sandbox: the gamemode folder name or +gamemode value is wrong. It must match exactly.
- Jobs do not appear: check Console for Lua errors in darkrpmodification.
- Players get ERROR models: add Workshop content with resource.AddWorkshop.
- Too many addons make the server slow, so add them gradually.