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
DarkRP Server Help
-
- New to forums
- Posts: 7
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Mon Apr 28, 2014 6:18 pm
- Sir Nipah
- This is my homepage
- Posts: 76
- Joined: Mon Jul 08, 2013 3:38 am
- Location: Australia/Melbourne
- Contact:
Re: DarkRP Server Help
I can explain most of this to you. reply if your still active on this site?
Re: DarkRP Server Help
I'm still active i just have school....
- Sir Nipah
- This is my homepage
- Posts: 76
- Joined: Mon Jul 08, 2013 3:38 am
- Location: Australia/Melbourne
- Contact:
Re: DarkRP Server Help
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.
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.
Re: DarkRP Server Help
I installed my darkrp by having the core and mod
- Sir Nipah
- This is my homepage
- Posts: 76
- Joined: Mon Jul 08, 2013 3:38 am
- Location: Australia/Melbourne
- Contact:
Re: DarkRP Server Help
indeed.. I'm just going to assume it was a manual install.Alexander wrote:I installed my darkrp by having the core and mod
In that case...
- 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)
- 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:
---------------------------------------------------------------------------*/ - 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 })
- I highlighted 3 thing for you to note..
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") - To add weapons to the job, just change... To
Code: Select all
weapons = {},
Code: Select all
weapons = {"stunstick", "nameofwep"},
Was that what you needed?