• [DarkRP] Problem with custom hitmen.
    1 replies, posted
Hello. I realize this was posted plenty of times before, but no thread i have seen in my 2 day long search has given me the answer I need. I added 2 custom classes I wish to have the hitman menu enabled with. I added them in the jobs.lua file and they show up properly in game. I have the necessary lines of code to add the jobs as hitmen, yet they still will not have the menu enabled! I also made sure to disable mobboss as a hitman. Every thread i have found has been people who forgot to add the DarkRP.addHitmanJob command, so i couldnt find help there. Here is my jobs.lua. [lua] /*--------------------------------------------------------------------------- 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_DRUGDEALER = AddExtraTeam("Drug Dealer", Color(0, 112, 4, 255), "models/player/eli.mdl", [[Sells the goods to the guys and the gals.]], {}, "drugdealer", 2, 25, 0, false, false, false) TEAM_ASSASSIN = AddExtraTeam("Assassin", Color(0, 0, 0, 255), "models/player/ezio.mdl", [[Take names and then hunting them down for blood. Specializes in melee and stealth tactics. Able to climb walls and wallrun.]], {"blue_devil","m9k_damascus","climb_swep2"}, "assassin", 2, 40, 0, true, false, false) TEAM_GUARD = AddExtraTeam("Guard", Color(192, 0, 232, 255), "models/player/barney.mdl", [[Find someone or a company to guard and guard them.]], {"m9k_sig_p299r"}, "guard", 30, 50, 0, false, true, false) TEAM_HITMAN = AddExtraTeam("Hitman", Color(212, 4, 4, 255), "models/player/bond.mdl", [[Take names and then hunting them down for blood. Specializes in guns and long range tactics. Only class that can buy snipers.]], {"m9k_scoped_taurus"}, "hitman", 2, 125, 0, true, true, 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_HITMAN) DarkRP.addHitmanTeam(TEAM_ASSASSIN) [/lua] If anyone would be able to help figure out my issue, I would be incredibly grateful.
Hey Key if you add me on steam ill help you fix it up. from what i can see there is nothing wrong with it but if you add me i will have a look :) [editline]31st May 2014[/editline] Fixed :)
Sorry, you need to Log In to post a reply to this thread.