• Problem with jobs.
    2 replies, posted
Here is my jobs.lua, tell me where i went wrong (btw i know hitman hasnt got the hitman code on it) [CODE]/*--------------------------------------------------------------------------- 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: ---------------------------------------------------------------------------*/ TEAM_HITMAN = AddExtraTeam("Hitman", Color(255, 0, 0, 255), "models/player/leet.mdl", [[This is the hitman! You accept hits of other people, then assassinate them! Raid:No Mug:No Base:No]], {"SVT 40"}, "hitman", 3, 100, 0, true, false, 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) [/CODE] Thanks! [editline]21st June 2014[/editline] Still not working D:?
You don't have TEAM_HITMAN in the addHitmanTeam. Change DarkRP.addHitmanTeam(TEAM_MOB) to DarkRP.addHitmanTeam(TEAM_HITMAN)
You haven't told us what's wrong with it. Does it just not show up? Also, add jobs like this: [lua] TEAM_HITMAN = DarkRP.createJob("Hitman", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[Desc]], weapons = {}, command = "hitman", max = 1, salary = 140, admin = 0, vote = true, hasLicense = false, }) [/lua] Your method hasn't been used in years.
Sorry, you need to Log In to post a reply to this thread.