How to Make a GMod DarkRP Server
Learn about how to change the name of your GMod server on an Atomic Networks service.
Having trouble starting up your DarkRP server? We can help! With thousands of hours worth of experience managing our own DarkRP servers, we have the knowledge to make starting your own GMod DarkRP server easy and simple. Follow this guide on how to set up a DarkRP server in a few short steps!
Before beginning the steps on this guide, make sure you’ve followed the initial setup guides in our knowledge base.
How to Install DarkRP
To install DarkRP navigate to the Mod Manager tab on an Atomic Networks server in the panel. Click the “Install” button next to the DarkRP mod.
Additionally, you will also want to install “DarkRP Modification” through the Mod Manager. This addon will allow you to change your DarkRP server’s settings through the files that we will discuss later in this guide. You can install this addon by clicking “Install” next to the mod named DarkRP Modification.
Once both files have been installed, you can set the gamemode for your server by navigating to the Startup Parameters Tab (under configuration) on the Atomic Game Panel. In the gamemode text box, enter darkrp
Step 1: Configuring darkrp_config
Files
To configure darkrp_config
files, you will need to have the “DarkRP Modification” mod installed through the Mod Manager. If you have performed this step, you can configure the files below by navigating to the path /home/container/garrysmod/addons/darkrpmodification/lua/darkrp_config
disabled_defaults.lua
disabled_defaults.lua is the first file we will configure. This file allows you to change some basic settings for DarkRP. In this file, we will show you:
How to Disable Default Shown DarkRP Jobs
To change default shown jobs, pick the job you’d like to disable in the DarkRP.disabledDefaults["jobs"]
section of the file, then set the job to true
How to Disable F1/F4 Menu
To disable the F1 menu, set "f1menu"
under "DarkRP.disabledDefaults["modules"]"
to true
How to Disable FAdmin
Disabling FAdmin is recommended if you want to use another admin system like ULX or SAM. To disable FAdmin set "fadmin"
under "DarkRP.disabledDefaults["modules"]"
to true
Along with these 3 common settings most people will need to change on this file, you can also change other settings in this file. To change them successfully the first time, read the comments in the disabled_defaults.lua
file made by the developer.
settings.lua
settings.lua
is a file that allows you to change all the unique small settings for your DarkRP server. You can find it in the pathway /home/container/garrysmod/addons/darkrpmodification/lua/darkrp_config/settings.lua
Changing the settings.lua folder is important, as it allows you to change options like:
- Default laws for the government
- Whether or not players can spawn vehicles
- Whether or not players can spawn NPCs
- Spawn locations
- And much, much more.
When starting up a new DarkRP server, it’s generally best practice to look through all the settings for this file at least once to change them to your liking. Set your configuration for the settings.lua
file and proceed to the next step once you are done.
Step 2: Configure darkrp_customthings Files
darkrp_customthings
is a folder inside of the DarkRP Modification addon that allows you to make custom changes to your DarkRP server. In this section, we will cover all of the notable files in this folder, and how to configure them.
Almost every file in this folder can be easily changed using a tool called YourDevTools. This will make your setup process a lot easier.
jobs.lua - How to Add Jobs to DarkRP
To add jobs to DarkRP, you will want to change the jobs.lua
file. This file consists of every job you will create for your DarkRP server. Follow the steps below to add a job to your GMod DarkRP server.
- Navigate to the
/home/container/garrysmod/addons/darkrpmodification/lua/darkrp_customthings/jobs.lua
pathway. - Create your DarkRP jobs, you can do this by using a tool like a DarkRP job generator.
- Paste your code into the
jobs.lua
file below the section that saysAdd your custom jobs under the following line
. - Save the
jobs.lua
file.
Repeat these steps until you have added in all the jobs you want to have on your server.
doorgroups.lua - How to Add Jobs to Doorgroups in DarkRP
To add jobs to doorgroups in DarkRP, you will want to change the doorgroups.lua
file. This file specifies the different door groups on your DarkRP server. To add jobs to a doorgroup, copy/paste the template and:
- Change the name of the doorgroup (in the example, it’s “Police”)
- Add the different team names of the jobs you’d like to add to the doorgroup. You can find these team names by looking for the job’s title (ex. TEAM_CITIZEN) in the
jobs.lua
file.
Repeat these steps until you have added in all the doorgroups for your jobs.
demotegroups.lua - How to Add Demote Groups in DarkRP
To make demotions ban a player from an entire group of jobs, you will want to change the demotegroups.lua
file. This file specifies the different groups that different demotions fall under. To add demote groups, copy/paste the template and:
- Change the name of the demote (in the example, it’s “TESTGROUP”)
- Add the different team names of the jobs you’d like to add to the demote group. You can find these team names by looking for the job’s title (ex. TEAM_CITIZEN) in the
jobs.lua
file.
Repeat these steps until you have added in all the demote groups for your jobs.
groupchats.lua - How to Create Group Chats in DarkRP
To make certain jobs able to talk to each other in group chats, you will want to change the groupchats.lua file. This file determines which jobs can talk to each other in group chat. Usually, server owners like to use this file to make group chats for PD based jobs and criminal organizations. To add group chats, copy/paste the template and replace the “TEAM_” with the TEAM names of the jobs you created in the jobs.lua file.
categories.lua - How to Add Categories for Jobs, Entities, Shipments, Vehicles and Ammo in DarkRP
The categories.lua
file allows you to change the way that the different groups for jobs, weapons, ammo, and vehicles are shown in the F4 menu. Change this file when you want to categorize the order and setup of entities shown in the F4 menu.
You can use YourDevTools to edit this file.
The entities that can be assigned the categories you create in this file are:
- Jobs (in the
jobs.lua
file) - Weapons (in the
shipments.lua
file) - Ammo (in the
ammo.lua
file) - Vehicles (in the
vehicles.lua
file, this will make it so that players can buy vehicles through the F4 menu)
Repeat these steps until you have created every category you want to have in the F4 menu.
entities.lua - How to Add Entities to DarkRP Server
The entities.lua
file allows you to make entities you add to your server show up on the F4 menu. Whenever you add an addon to your server that you want to be able to be bought by your players, edit this file.
You can use YourDevTools to edit this file. You can also use the template shown below. To add an entity to this file, paste the template and:
-
Change the Entity ID to the ID of the entity you want to add. To find the ID for an entity:
- Start a game of GMod with your addons installed.
- Spawn in the entity you want to find the ID for through the Build (Q) menu.
- Hold the C button to open the context menu. Hover over the entity, right click, and select “Copy to Clipboard”
-
Change the model. You can use the model given in the Build (Q) menu or choose another model.
-
Change the entity price.
-
Change the maximum # of entities that can be purchased.
-
Change the / command that will be typed in chat to spawn the entity.
Repeat these steps until you have added in all the purchasable entities your players can buy onto your server.
shipments.lua - How to Create DarkRP Weapon Shipments
The shipments.lua
file allows you to make weapons you add to your server purchasable in the F4 menu. Whenever you add a weapon to your server that you want to be able to be bought by your players, edit this file.
You can use YourDevTools to edit this file. You can also use the template shown below. To add a purchasable weapon to this file, paste the template and:
- Change the Weapon ID to the ID of the weapon you want to add. To find the ID for a weapon:
- Start a game of GMod with your addons installed.
- Open the Build (Q) Menu and click on the weapons tab.
- Right click on the weapon you want to add and select “Copy to Clipboard”
- Change the name of your shipment. In the example below, the name is “AK47”.
- Change the model shown in the F4 menu of the weapon to the model of the weapon. To find the model:
- Open the Build (Q) Menu.
- Search the name of your weapon.
- Find the model that you want to use. Right click on the model and select “Copy to Clipboard”
- Optional: Specify the weapon category with a category you created in the
categories.lua
file. - Set the price of your shipment by changing the
pricesep
value. - Set the number of weapons that will be in this weapon shipment. If you want to have both singles and shipments on your server, you will need to have two sections of code with different “amount” variables set.
- Specify which jobs are allowed to buy the shipment. To make a Gun Dealer job in DarkRP, you will need to add the TEAM_GUNDEALER to the “allowed” section of each weapon shipment.
- Optional: If you have a custom shipment model, add it in the
shipmodel
variable.
Repeat these steps until you have added in all the different weapons and shipments to your DarkRP server.
ammo.lua - How to Create DarkRP Ammo
The ammo.lua
file allows you to add custom ammo for the different weapons you add to your server. Whenever you add a weapon to your server, you will need to edit it’s weapon file to add your custom ammo.
You can use YourDevTools to edit this file. You can also use the template shown below. To add a new ammo type to this file, paste the template and:
- Set the identifer for your Ammo Type. In the example below, the first ammo is identified as “357”
- Set the
name
for your ammo. - Set the
model
for your ammo, you can find the different types by searching in the Build (Q) menu. - Set the
price
for your ammo. - Set the
amountgiven
for your ammo. This will change how many bullets are given per ammo entity purchased.
Below is a copy paste with every ammo type required for the M9K weapon base (except for the 73 Winchester, which uses an ammo type called “AirboatGun”). If you are using M9K, you can copy paste this into your file and it will work correctly.
Repeat these steps until you have added in all the different ammo types to your DarkRP server.
Frequently Asked Questions
Below are the answers to some questions that we get asked quite often about setting up a GMod DarkRP server.
How do I disable vehicle collisons in GMod DarkRP?
To disable vehicle collisions in GMod DarkRP, follow these steps:
- Navigate to the File Manager for your GMod DarkRP Server
- Navigate to the path
/home/container/garrysmod/lua/autorun/server
- Create a new file in this path called
vehicle_collisions.lua
- Navigate to the File Manager for your GMod DarkRP Server and paste in the following code…
How do I disable clientside scripts in GMod DarkRP?
To disable clientside scripts for your GMod DarkRP server, follow these steps:
- Navigate to the File Manager for your GMod DarkRP Server
- Navigate to the path
/home/container/garrysmod/addons/darkrpmodification/lua/darkrp_config
and open thesettings.lua
file. - Once you have this file open, look for
GM.Config.disallowClientsideScripts.
using Ctrl + F - Change the
false
value totrue