• darkrpmod Help!
    2 replies, posted
So I added some custom jobs in the Darkrpmodifications addon, in lua/darkrp_customthings/jobs.lua and when I'm in the server they aren't there. The default Jobs that comes with DarkRP is there, but not the ones I added on this addon. Here is the file: /*--------------------------------------------------------------------------- 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: [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url] For examples and explanation please visit this wiki page: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Add jobs under the following line: ---------------------------------------------------------------------------*/ TEAM_HITMAN = DarkRP.createJob("Hitman", { color = (70, 70, 70, 255), model = "models/player/guerilla.mdl", description = [[You are a contracted killer.]], weapons = {"bb_ak47"}, command = "hitman", max = 1, salary = 300, admin = 0, vote = false, hasLicense = false, }) TEAM_TERRORIST = DarkRP.createJob("Terrorist", { color = (255, 0, 0, 255), model = "models/player/Phoenix.mdl", description = [[Terrorize the Police!]], weapons = {"bb_ak47"}, command = "terrorist", max = 2, salary = 300, admin = 0, vote = false, hasLicense = false, }) TEAM_DRUGDEALER = DarkRP.createJob("Drug Dealer", { color = (0, 235, 255, 255), model = "models/player/soldier_stripped.mdl", description = [[Sell drugs, but don\'t get caught!]], weapons = {}, command = "drugdealer", max = 1, salary = 300, admin = 0, vote = false, hasLicense = false, }) TEAM_STAFFONDUTY = DarkRP.createJob("Staff on Duty", { color = (141, 0, 255, 255), model = "models/player/combine_soldier.mdl", description = [[Staff on Duty!]], weapons = {}, command = "staffonduty", max = 10, salary = 300, admin = 1, vote = false, hasLicense = false, }) /*--------------------------------------------------------------------------- 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) So if someone could help me out, that would be great!
[URL="https://github.com/FPtje/darkrpmodification"]Use DarkRP Modification.[/URL]
[QUOTE=code_gs;45392453][URL="https://github.com/FPtje/darkrpmodification"]Use DarkRP Modification.[/URL][/QUOTE] I think I used that.. [editline]15th July 2014[/editline] But I'll try. [editline]15th July 2014[/editline] [QUOTE=code_gs;45392453][URL="https://github.com/FPtje/darkrpmodification"]Use DarkRP Modification.[/URL][/QUOTE] Yeah, I did use that one. [editline]15th July 2014[/editline] [QUOTE=code_gs;45392453][URL="https://github.com/FPtje/darkrpmodification"]Use DarkRP Modification.[/URL][/QUOTE] Still need help. [editline]15th July 2014[/editline] Anyone found out what's wrong?
Sorry, you need to Log In to post a reply to this thread.