DarkRP Server Help

Post Reply
Alexander
New to forums
New to forums
Posts: 7
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Apr 28, 2014 6:18 pm

DarkRP Server Help

Post by Alexander »

Hello, so iv setup my server on sunday iv got players on it and theres a problem, people come up to me and say "Are there going to be jobs added and i say yes but when i get time". I need to know how to set them up. Right now i am using FTP and download darkrp editor and placed it in my addons. I finshed making a class and nothing happend i also want to use custom guns on these jobs. Anyone mind helping


Alexander Gibbons
[XFG-A/M] Gravity (steam)


P.s Contact me as soon as possable
User avatar
Sir Nipah
This is my homepage
This is my homepage
Posts: 76
Joined: Mon Jul 08, 2013 3:38 am
Location: Australia/Melbourne
Contact:

Re: DarkRP Server Help

Post by Sir Nipah »

I can explain most of this to you. reply if your still active on this site?
Image Garry's Mod veteran.
Alexander
New to forums
New to forums
Posts: 7
Joined: Mon Apr 28, 2014 6:18 pm

Re: DarkRP Server Help

Post by Alexander »

I'm still active i just have school....
User avatar
Sir Nipah
This is my homepage
This is my homepage
Posts: 76
Joined: Mon Jul 08, 2013 3:38 am
Location: Australia/Melbourne
Contact:

Re: DarkRP Server Help

Post by Sir Nipah »

1st I need to ask about how you installed your copy of darkrp. workshop, github or other?
Do you have just the core gamemode or do you have darkrpmodification too?
I need to know as much as I can about your copy, just so I know the right info to give out.

Just so you know there is 2 way to install it now.
Image Garry's Mod veteran.
Alexander
New to forums
New to forums
Posts: 7
Joined: Mon Apr 28, 2014 6:18 pm

Re: DarkRP Server Help

Post by Alexander »

I installed my darkrp by having the core and mod
User avatar
Sir Nipah
This is my homepage
This is my homepage
Posts: 76
Joined: Mon Jul 08, 2013 3:38 am
Location: Australia/Melbourne
Contact:

Re: DarkRP Server Help

Post by Sir Nipah »

Alexander wrote:I installed my darkrp by having the core and mod
indeed.. I'm just going to assume it was a manual install.

In that case...
  1. Head to your addons/darkrpmodification/lua/darkrp_customthings/ folder. You will find "jobs.lua" and it should look something like this..

    Code: Select all

    /*---------------------------------------------------------------------------
    DarkRP custom jobs
    ---------------------------------------------------------------------------
    
    This file contains your custom jobs.
    This file should also contain jobs from DarkRP that you edited.
    
    Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
    	Once you've done that, copy and paste the job to this file and edit it.
    
    The default jobs can be found here:
    https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
    
    For examples and explanation please visit this wiki page:
    http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
    
    
    Add jobs under the following line:
    ---------------------------------------------------------------------------*/
    
    
    
    
    
    
    
    
    /*---------------------------------------------------------------------------
    Define which team joining players spawn into and what team you change to if demoted
    ---------------------------------------------------------------------------*/
    GAMEMODE.DefaultTeam = TEAM_CITIZEN
    
    
    /*---------------------------------------------------------------------------
    Define which teams belong to civil protection
    Civil protection can set warrants, make people wanted and do some other police related things
    ---------------------------------------------------------------------------*/
    GAMEMODE.CivilProtection = {
    	[TEAM_POLICE] = true,
    	[TEAM_CHIEF] = true,
    	[TEAM_MAYOR] = true,
    }
    
    /*---------------------------------------------------------------------------
    Jobs that are hitmen (enables the hitman menu)
    ---------------------------------------------------------------------------*/
    DarkRP.addHitmanTeam(TEAM_MOB)
    
  2. From the line that said what I'm about to quote (Line 19 for me), We are going to add a job.
    Add jobs under the following line:
    ---------------------------------------------------------------------------*/
  3. Here is a quick job to play with

    Code: Select all

    TEAM_TEST = DarkRP.createJob("Test", {
    	color = Color(20, 150, 20, 255),
    	model = {
    		"models/player/Group01/Female_01.mdl",
    		"models/player/Group01/Female_02.mdl",
    		"models/player/Group01/Female_03.mdl",
    		"models/player/Group01/Female_04.mdl",
    		"models/player/Group01/Female_06.mdl",
    		"models/player/group01/male_01.mdl",
    		"models/player/Group01/Male_02.mdl",
    		"models/player/Group01/male_03.mdl",
    		"models/player/Group01/Male_04.mdl",
    		"models/player/Group01/Male_05.mdl",
    		"models/player/Group01/Male_06.mdl",
    		"models/player/Group01/Male_07.mdl",
    		"models/player/Group01/Male_08.mdl",
    		"models/player/Group01/Male_09.mdl"
    	},
    	description = [[This is the description.]],
    	weapons = {},
    	command = "test",
    	max = 0,
    	salary = 0,
    	admin = 0,
    	vote = false,
    	hasLicense = false,
    	candemote = false
    })
  4. I highlighted 3 thing for you to note..
    Image
    The 1st one is "TEAM_TEST" this needs to be unique, This can not be the same as other jobs. It has nothing to do with the name of the job or if admins can use it. (Lots of people set it as "TEAM_ADMIN" and then complain that its not an admin only job.)

    The 2nd one, "Test" IS the name of the job and IS what people will see in game.

    The 3rd is the color that the players name will be in game (Done in RGBA..If you don't know what RGB is, don't play with the last number "255")
  5. To add weapons to the job, just change...

    Code: Select all

    weapons = {},
    To

    Code: Select all

    weapons = {"stunstick", "nameofwep"},
It's more detailed on the darkrp wiki. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields

Was that what you needed?
Image Garry's Mod veteran.
Post Reply