• Customcheck messing up jobs!
    4 replies, posted
[B][U]Okay so here i go, i made a lot of jobs for my zombierp server, and they didn't work at first, i fixed all of the problems and then all the jobs worked until the vip jobs and STAFF ON DUTY. I checked console and it said with customcheck error Please find out what is wrong, i have searched and searched![/U][/B] --[[--------------------------------------------------------------------------- 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_BANDIT = DarkRP.createJob("Bandit", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a thief. You can raid/mug.]], weapons = {"bb_css_knife_alt", "lockpick"}, command = "bandit", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, category = "Citizens", }) TEAM_BANDITLEADER = DarkRP.createJob("Bandit Leader", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]], weapons = {"lockpick", "bb_dualelites_alt"}, command = "banditleader", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, category = "Citizens", }) TEAM_SCHOLAR = DarkRP.createJob("Scholar", { color = Color(0, 0, 0, 255), model = "models/player/kleiner.mdl", description = [[You are a thief. You can raid/mug.]], weapons = {""}, command = "scholar", max = 2, salary = 70, admin = 0, vote = false, hasLicense = false, category = "Citizens", }) TEAM_SUICIDE = DarkRP.createJob("Suicider", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a suicider and go out into hoards and blow everything up. KILLING PLAYERS STILL COUNTS AS RDM!]], weapons = {"m9k_suicide_bomb"}, command = "suicide", max = 2, salary = 200, admin = 0, vote = true, hasLicense = true, category = "Citizens", }) TEAM_LONEWOLF = DarkRP.createJob("Lone Wolf", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a hunter and try to protect every citizen there is.]], weapons = {"bb_awp_alt", "bb_tmp_alt"}, command = "lonewolf", max = 2, salary = 200, admin = 0, vote = false, hasLicense = true, category = "Citizens", }) TEAM_MILITARYPRIVATE = DarkRP.createJob("Military Private", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_glock_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militaryprivate", max = 5, salary = 2000, admin = 0, vote = false, hasLicense = true, category = "Citizens", level = 10 }) TEAM_MILITARYSERGEANT = DarkRP.createJob("Military Sergeant", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2he.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_mp5_alt", "bb_fiveseven_alt", "bb_css_smoke_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarysergeant", max = 3, salary = 3000, admin = 0, vote = false, hasLicense = true, category = "Citizens", }) TEAM_MILITARYCORPORAL = DarkRP.createJob("Military Corporal", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2hexe.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_m4a1_alt", "bb_m3_alt", "bb_cssfrag_alt", "bb_css_smoke_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarycorporal", max = 2, salary = 4000, admin = 0, vote = false, hasLicense = true, category = "Citizens", }) TEAM_MILITARYGENERAL = DarkRP.createJob("Military General", { color = Color(0, 0, 0, 255), model = "models/mw2guy/riot/riot_us.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_deagle_alt", "bb_m3_alt", "bb_cssfrag_alt", "bb_galil_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarygeneral", max = 1, salary = 6000, admin = 0, vote = true, hasLicense = true, category = "Citizens", }) TEAM_SPECIALOPS = DarkRP.createJob("Special OPS", { color = Color(0, 0, 0, 255), model = "models/codmw2/t_codm.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_m249_alt", "bb_xm1014_alt", "bb_css_c4_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarysupersoldier", max = 2, salary = 8000, admin = 0, vote = true, hasLicense = true, category = "Citizens", }) TEAM_MILITARYRECON = DarkRP.createJob("Military Recon", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2m.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_awp_alt", "bb_tmp_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militaryrecon", max = 1, salary = 8000, admin = 0, vote = false, hasLicense = true, category = "Citizens", }) TEAM_HITMAN = DarkRP.createJob("Military Corporal", { color = Color(0, 0, 0, 255), model = "models/player/agent_47.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_p228_alt", "keypad_cracker", "lockpick"}, command = "hitman", max = 2, salary = 500, admin = 0, vote = true, hasLicense = false, }) TEAM_MERCENARY = DarkRP.createJob("Mercenary", { color = Color(0, 0, 0, 255), model = "models/fearless/cr.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_awp_alt", "bb_mac10_alt", "keypad_cracker", "lockpick"}, command = "mercenary", max = 2, salary = 1000, admin = 0, vote = true, hasLicense = false, category = "Citizens", }) TEAM_THIEF = DarkRP.createJob("Thief", { color = Color(0, 0, 0, 255), model = "models/splinks/kf2/characters/player_djskully.mdl", description = [[You are a thief. You may raid/mug.]], weapons = {"bb_usp_alt", "pro_lockpick_update", "keypad_cracker"}, command = "militarycorporal", max = 2, salary = 4000, admin = 0, vote = false, hasLicense = false, category = "Citizens", customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:IsAdmin() customCheck = function(ply) return ply:GetNWString("usergroup") == "goldvip" or ply:IsAdmin() end, }) TEAM_EXPERTTHIEF = DarkRP.createJob("Expert Thief", { color = Color(0, 0, 0, 255), model = "models/player/bobert/akak.mdl", description = [[You are a thief. You may raid/mug.]], weapons = {"bb_ak47_alt", "bb_glock_alt", "pro_lockpick_update", "prokeypadcracker"}, command = "experthief", max = 5, salary = 10000, admin = 0, vote = false, hasLicense = false, category = "Citizens", customCheck = function(ply) return ply:GetNWString("usergroup") == "goldvip" or ply:IsAdmin() end, }) TEAM_HUNTER = DarkRP.createJob("Hunter", { color = Color
[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...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: ---------------------------------------------------------------------------]] local VIP = { ["vip"] = true, ["goldvip"] = true } local staff = { ["donorstaff"] = true, ["moderator"] = true, ["admin"] = true, ["superadmin"] = true, ["headadmin"] = true } TEAM_BANDIT = DarkRP.createJob("Bandit", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a thief. You can raid/mug.]], weapons = {"bb_css_knife_alt", "lockpick"}, command = "bandit", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, category = "Citizens" }) TEAM_BANDITLEADER = DarkRP.createJob("Bandit Leader", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]], weapons = {"lockpick", "bb_dualelites_alt"}, command = "banditleader", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, category = "Citizens" }) TEAM_SCHOLAR = DarkRP.createJob("Scholar", { color = Color(0, 0, 0, 255), model = "models/player/kleiner.mdl", description = [[You are a thief. You can raid/mug.]], weapons = {""}, command = "scholar", max = 2, salary = 70, admin = 0, vote = false, hasLicense = false, category = "Citizens" }) TEAM_SUICIDE = DarkRP.createJob("Suicider", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a suicider and go out into hoards and blow everything up. KILLING PLAYERS STILL COUNTS AS RDM!]], weapons = {"m9k_suicide_bomb"}, command = "suicide", max = 2, salary = 200, admin = 0, vote = true, hasLicense = true, category = "Citizens" }) TEAM_LONEWOLF = DarkRP.createJob("Lone Wolf", { color = Color(0, 0, 0, 255), model = "models/player/group03/male_07.mdl", description = [[You are a hunter and try to protect every citizen there is.]], weapons = {"bb_awp_alt", "bb_tmp_alt"}, command = "lonewolf", max = 2, salary = 200, admin = 0, vote = false, hasLicense = true, category = "Citizens" }) TEAM_MILITARYPRIVATE = DarkRP.createJob("Military Private", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_glock_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militaryprivate", max = 5, salary = 2000, admin = 0, vote = false, hasLicense = true, category = "Citizens", level = 10 }) TEAM_MILITARYSERGEANT = DarkRP.createJob("Military Sergeant", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2he.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_mp5_alt", "bb_fiveseven_alt", "bb_css_smoke_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarysergeant", max = 3, salary = 3000, admin = 0, vote = false, hasLicense = true, category = "Citizens" }) TEAM_MILITARYCORPORAL = DarkRP.createJob("Military Corporal", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2hexe.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_m4a1_alt", "bb_m3_alt", "bb_cssfrag_alt", "bb_css_smoke_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarycorporal", max = 2, salary = 4000, admin = 0, vote = false, hasLicense = true, category = "Citizens" }) TEAM_MILITARYGENERAL = DarkRP.createJob("Military General", { color = Color(0, 0, 0, 255), model = "models/mw2guy/riot/riot_us.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_deagle_alt", "bb_m3_alt", "bb_cssfrag_alt", "bb_galil_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarygeneral", max = 1, salary = 6000, admin = 0, vote = true, hasLicense = true, category = "Citizens" }) TEAM_SPECIALOPS = DarkRP.createJob("Special OPS", { color = Color(0, 0, 0, 255), model = "models/codmw2/t_codm.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_m249_alt", "bb_xm1014_alt", "bb_css_c4_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militarysupersoldier", max = 2, salary = 8000, admin = 0, vote = true, hasLicense = true, category = "Citizens" }) TEAM_MILITARYRECON = DarkRP.createJob("Military Recon", { color = Color(0, 0, 0, 255), model = "models/codmw2/codmw2m.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_awp_alt", "bb_tmp_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militaryrecon", max = 1, salary = 8000, admin = 0, vote = false, hasLicense = true, category = "Citizens" }) TEAM_HITMAN = DarkRP.createJob("Military Corporal", { color = Color(0, 0, 0, 255), model = "models/player/agent_47.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_p228_alt", "keypad_cracker", "lockpick"}, command = "hitman", max = 2, salary = 500, admin = 0, vote = true, hasLicense = false }) TEAM_MERCENARY = DarkRP.createJob("Mercenary", { color = Color(0, 0, 0, 255), model = "models/fearless/cr.mdl", description = [[You are a military private and protect everyone.]], weapons = {"bb_awp_alt", "bb_mac10_alt", "keypad_cracker", "lockpick"}, command = "mercenary", max = 2, salary = 1000, admin = 0, vote = true, hasLicense = false, category = "Citizens" }) TEAM_THIEF = DarkRP.createJob("Thief", { color = Color(0, 0, 0, 255), model = "models/splinks/kf2/characters/player_djskully.mdl", description = [[You are a thief. You may raid/mug.]], weapons = {"bb_usp_alt", "pro_lockpick_update", "keypad_cracker"}, command = "militarycorporal", max = 2, salary = 4000, admin = 0, vote = false, hasLicense = false, category = "Citizens", customCheck = function(ply) return VIP[ply:GetNWString("usergroup")] or ply:IsAdmin() end }) TEAM_EXPERTTHIEF = DarkRP.createJob("Expert Thief", { color = Color(0, 0, 0, 255), model = "models/player/bobert/akak.mdl", description = [[You are a thief. You may raid/mug.]], weapons = {"bb_ak47_alt", "bb_glock_alt", "pro_lockpick_update", "prokeypadcracker"}, command = "experthief", max = 5, salary = 10000, admin = 0, vote = false, hasLicense = false, category = "Citizens", customCheck = function(ply) return ply:GetNWString("usergroup") == "goldvip" or ply:IsAdmin() end }) TEAM_HUNTER = DarkRP.createJob("Hunter", { color = Color(0, 0, 0, 255), model = "models/player/zombie_classic.mdl", description = [[You are a zombie and kill any survivors.]], weapons = {"l4dhunter_swep"}, command = "hunter", max = 2, salary = 10000, admin = 0, vote = false, hasLicense = false, category = "Citizens", customCheck = function(ply) return VIP[ply:GetNWString("usergroup")] or ply:IsAdmin() end }) TEAM_MILITARYJUGGERNAUT = DarkRP.createJob("Military Juggernaut", { color = Color(0, 0, 0, 255), model = "models/mw2guy/riot/juggernaut.mdl", description = [[You are a super giant military person... nuff said.]], weapons = {"m9k_minigun", "bb_xm1014_alt", "bb_g3sg1_alt", "unarrest_stick", "arrest_stick", "door_ram"}, command = "militaryjuggernaut", max = 1, salary = 10000, admin = 0, vote = true, hasLicense = true, category = "Citizens", customCheck = function(ply) return VIP[ply:GetNWString("usergroup")] or ply:IsAdmin() end }) TEAM_GOVORNOR = DarkRP.cre
thank you so much for helping me, i am pasting this in and seeing if works!~~~ :D [editline]12th November 2015[/editline] found a mistake, but no big deal! its just that thief did not have a uniqe command! changing! [editline]12th November 2015[/editline] error on my side, i pasted more jobs and forgot to change military to thief! [editline]12th November 2015[/editline] another command messup on two jobs, fixing and testing...
You can also use a job generator like TCB's job generator if you're having issues with the jobs. [url]https://www.thecodingbeast.com/tools/job[/url]
asdasd [highlight](User was banned for this post ("Stupid bump" - Novangel))[/highlight]
Sorry, you need to Log In to post a reply to this thread.