• Jobs Arent Working
    0 replies, posted
the problem is that i put i new job in citizen and now none of my jobs work this is my jobs.lua [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_POLICE = DarkRP.createJob("Police", { color = Color(0, 33, 255, 255), model = {"models/ecpd/male_07.mdl"}, description = [[Police,Stop All The Crime In The City]], weapons = {weapon_deagle2, weapon_limeinv}, command = "police", max = 5, salary = 75, admin = 0, vote = false, hasLicense = true, candemote = false, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "", }) TEAM_CHEIF = DarkRP.createJob("Police Cheif", { color = Color(0, 33, 255, 255), model = {"models/ecpd/male_04.mdl"}, description = [[Police,Stop All The Crime In The City]], weapons = {weapon_pumpshotgun2, weapon_limeinv}, command = "cheif", max = 1, salary = 100, admin = 0, vote = false, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "", }) TEAM_MAYOR = DarkRP.createJob("Mayor", { color = Color(255, 0, 237, 255), model = {"models/player/breen.mdl"}, description = [[Mayor, Make Laws and Keep Every One In Line]], weapons = {weapon_limeinv}, command = "mayor", max = 1, salary = 200, admin = 0, vote = false, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = true, hobo = false, cook = false, category = "", }) TEAM_DEF = DarkRP.createJob("Citizen", { color = Color(43, 255, 0, 255), model = {"models/player/Group01/male_02.mdl"}, description = [[]], weapons = {}, command = "citizen", max = 100, salary = 45, admin = 0 vote = false, hasLicense = false, candemote = false, --[[--------------------------------------------------------------------------- Define which team joining players spawn into and what team you change to if demoted ---------------------------------------------------------------------------]] GAMEMODE.DefaultTeam = TEAM_DEF --[[--------------------------------------------------------------------------- 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] [editline]27th August 2015[/editline] also whenever i change job the server crashes
Sorry, you need to Log In to post a reply to this thread.