• Help with Gmod Job Errors
    6 replies, posted
I have been having a lot of errors with this so if you could me fix it that would be great! Here are the errors it is giving me in console [CODE] [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:64: '}' expected near 'models' 1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0 [/CODE] And here is my code! [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_ASSASSIN = DarkRP.createJob("Assassin", { color = Color(0, 0, 255, 255), model = {"models/player/Aiden_Pearce.mdl"}, description = [[You are an assassin you job is to take hits from people and kill you assigned hit! You may not raid unless your target is in a base, you may not mug, or kidnap as this job!]], weapons = {"weapon_ak472"}, command = "assassin", max = 2, admin = 0, salary = 65, vote = false, hasLicense = false, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_BILLIONAIR = DarkRP.createJob("Billionair", { color = Color(0, 255, 0, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are a billion air you job is to build luxery homes and show off them!]], weapons = {}, command = "billionair", max = 5, salary = 200, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_BATMAN = DarkRP.createJob("Batman", { color = Color(0, 255, 0, 255), model = {""models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl""}, description = [[You are the protector of the city find joker and make sure that he isnt up to any good! You can't mug, kidnap as this job! You may not kill joker unless you see him do something EVIL! ]], weapons = {"weapon_ak472"}, command = "batman", max = 1, salary = 85, admin = 0, vote = false, hasLicense = true, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_JOKER = DarkRP.createJob("Joker", { color = Color(255, 0, 255, 255), model = {"models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl"}, description = [[You are the Joker kidnap, mug, and raid people to get Batmans attention!]], weapons = {"weapon_ak472"}, command = "joker", max = 1, salary = 85, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(0, 0, 255, 255), model = {"models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl"}, description = [[You are a Police Officer you must protect the city! You cannot raid unless you have a warrent, you can't mug, or kidnap!]], weapons = {"weapon_ak472"}, command = "police", max = 8, salary = 50, admin = 0, vote = false, hasLicense = true, -- Insert customCheck here if you have one and want one. }) TEAM_THEIF = DarkRP.createJob("Theif", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a thief you must print money, raid, mug, kidnap people for money, but remember dont get caught by the cops!]], weapons = {""}, command = "thief", max = 6, salary = 45, admin = 0, vote = false, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_RAPE = DarkRP.createJob("Rapist", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a rapist go rape people but dont get caught or you will be jailed remeber you are not allowed to rape in public! You may not raid, you may mug, You cannot kidnap!]], weapons = {""}, command = "rape", max = 1, salary = 25, admin = 0, vote = true, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_CRIBS = DarkRP.createJob("Cribs Member", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a cribs member follow you leader and remember the bloods are you enemys! You cannot random kill bloodz members unless you have started a war with them!]], weapons = {""}, command = "cribs", max = 5, salary = 45, admin = 0, vote = false, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_CRIBSLEADER = DarkRP.createJob("Cribs Leader", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are the cribs leader, command the cribs and try to start a war against the bloods!]], weapons = {""}, command = "cribsleader", max = 1, salary = 55, admin = 0, vote = false, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_BLOODS = DarkRP.createJob("Bloods Member", { color = Color(255, 255, 0, 255), model = {"m
Well your code is all over the place. You have spacing where spaces are not supposed to be. Give me a few minutes and I will paste the code. [Note] Now remember this was quickly corrected. So If you have any errors just reply back. [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_ASSASSIN = DarkRP.createJob("Assassin", { color = Color(0, 0, 255, 255), model = {"models/player/Aiden_Pearce.mdl"}, description = [[You are an assassin you job is to take hits from people and kill you assigned hit! You may not raid unless your target is in a base, you may not mug, or kidnap as this job!]], weapons = {"weapon_ak472"}, command = "assassin", max = 2, admin = 0, salary = 65, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_BILLIONAIR = DarkRP.createJob("Billionair", { color = Color(0, 255, 0, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are a billion air you job is to build luxery homes and show off them!]], weapons = {}, command = "billionair", max = 5, salary = 200, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_BATMAN = DarkRP.createJob("Batman", { color = Color(0, 255, 0, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are the protector of the city find joker and make sure that he isnt up to any good! You can't mug, kidnap as this job! You may not kill joker unless you see him do something EVIL! ]], weapons = {"weapon_ak472"}, command = "batman", max = 1, salary = 85, admin = 0, vote = false, hasLicense = true, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_JOKER = DarkRP.createJob("Joker", { color = Color(255, 0, 255, 255), model = { "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are the Joker kidnap, mug, and raid people to get Batmans attention!]], weapons = {"weapon_ak472"}, command = "joker", max = 1, salary = 85, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(0, 0, 255, 255), model = { "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are a Police Officer you must protect the city! You cannot raid unless you have a warrent, you can't mug, or kidnap!]], weapons = {"weapon_ak472"}, command = "police", max = 8, salary = 50, admin = 0, vote = false, hasLicense = true }) TEAM_THEIF = DarkRP.createJob("Theif", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a thief you must print money, raid, mug, kidnap people for money, but remember dont get caught by the cops!]], weapons = {}, command = "thief", max = 6, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_RAPE = DarkRP.createJob("Rapist", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a rapist go rape people but dont get caught or you will be jailed remeber you are not allowed to rape in public! You may not raid, you may mug, You cannot kidnap!]], weapons = {}, command = "rape", max = 1, salary = 25, admin = 0, vote = true, hasLicense = false }) TEAM_CRIBS = DarkRP.createJob("Cribs Member", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a cribs member follow you leader and remember the bloods are you enemys! You cannot random kill bloodz members unless you have started a war with them!]], weapons = {}, command = "cribs", max = 5, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_CRIBSLEADER = DarkRP.createJob("Cribs Leader", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are the cribs leader, command the cribs and try to start a war against the bloods!]], weapons = {}, command = "cribsleader", max = 1, salary = 55, admin = 0, vote = false, hasLicense = false }) TEAM_BLOODS = DarkRP.createJob("Bloods Member", { color = Color(255, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a bloods member follow you leader and remember the cribs are you enemys! You cannot random kill cribs members unless you have started a war with them!]], weapons = {}, command = "bloods", max = 5, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_BLOO
[QUOTE=tripps41;46256999]Well your code is all over the place. You have spacing where spaces are not supposed to be. Give me a few minutes and I will paste the code. [Note] Now remember this was quickly corrected. So If you have any errors just reply back. [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_ASSASSIN = DarkRP.createJob("Assassin", { color = Color(0, 0, 255, 255), model = {"models/player/Aiden_Pearce.mdl"}, description = [[You are an assassin you job is to take hits from people and kill you assigned hit! You may not raid unless your target is in a base, you may not mug, or kidnap as this job!]], weapons = {"weapon_ak472"}, command = "assassin", max = 2, admin = 0, salary = 65, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_BILLIONAIR = DarkRP.createJob("Billionair", { color = Color(0, 255, 0, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are a billion air you job is to build luxery homes and show off them!]], weapons = {}, command = "billionair", max = 5, salary = 200, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_BATMAN = DarkRP.createJob("Batman", { color = Color(0, 255, 0, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are the protector of the city find joker and make sure that he isnt up to any good! You can't mug, kidnap as this job! You may not kill joker unless you see him do something EVIL! ]], weapons = {"weapon_ak472"}, command = "batman", max = 1, salary = 85, admin = 0, vote = false, hasLicense = true, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_JOKER = DarkRP.createJob("Joker", { color = Color(255, 0, 255, 255), model = { "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are the Joker kidnap, mug, and raid people to get Batmans attention!]], weapons = {"weapon_ak472"}, command = "joker", max = 1, salary = 85, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators." }) TEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(0, 0, 255, 255), model = { "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are a Police Officer you must protect the city! You cannot raid unless you have a warrent, you can't mug, or kidnap!]], weapons = {"weapon_ak472"}, command = "police", max = 8, salary = 50, admin = 0, vote = false, hasLicense = true }) TEAM_THEIF = DarkRP.createJob("Theif", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a thief you must print money, raid, mug, kidnap people for money, but remember dont get caught by the cops!]], weapons = {}, command = "thief", max = 6, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_RAPE = DarkRP.createJob("Rapist", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a rapist go rape people but dont get caught or you will be jailed remeber you are not allowed to rape in public! You may not raid, you may mug, You cannot kidnap!]], weapons = {}, command = "rape", max = 1, salary = 25, admin = 0, vote = true, hasLicense = false }) TEAM_CRIBS = DarkRP.createJob("Cribs Member", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a cribs member follow you leader and remember the bloods are you enemys! You cannot random kill bloodz members unless you have started a war with them!]], weapons = {}, command = "cribs", max = 5, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_CRIBSLEADER = DarkRP.createJob("Cribs Leader", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are the cribs leader, command the cribs and try to start a war against the bloods!]], weapons = {}, command = "cribsleader", max = 1, salary = 55, admin = 0, vote = false, hasLicense = false }) TEAM_BLOODS = DarkRP.createJob("Bloods Member", { color = Color(255, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a bloods member follow you leader and remember the cribs are you enemys! You cannot random kill cribs members unless you have started a war with them!]], weapons = {}, command = "bloods", max = 5, salary = 45, admin = 0, vote = false, hasLicense
Okay did a quick fix I change the customCheck function. Seeing as this likes to mess up I am just going to upload the file. [url]http://play.yougold.org/jobs/jobs.lua[/url]
[QUOTE=tripps41;46257281]Okay did a quick fix I change the customCheck function. Seeing as this likes to mess up I am just going to upload the file. [url]http://play.yougold.org/jobs/jobs.lua[/url][/QUOTE] I got a new error [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:266: '}' expected (to close '{' at line 255) near 'customCheck' 1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0
[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_ASSASSIN = DarkRP.createJob("Assassin", { color = Color(0, 0, 255, 255), model = {"models/player/Aiden_Pearce.mdl"}, description = [[You are an assassin you job is to take hits from people and kill you assigned hit! You may not raid unless your target is in a base, you may not mug, or kidnap as this job!]], weapons = {"weapon_ak472"}, command = "assassin", max = 2, admin = 0, salary = 65, vote = false, hasLicense = false, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_BILLIONAIR = DarkRP.createJob("Billionair", { color = Color(0, 255, 0, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are a billion air you job is to build luxery homes and show off them!]], weapons = {}, command = "billionair", max = 5, salary = 200, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_BATMAN = DarkRP.createJob("Batman", { color = Color(0, 255, 0, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are the protector of the city find joker and make sure that he isnt up to any good! You can't mug, kidnap as this job! You may not kill joker unless you see him do something EVIL! ]], weapons = {"weapon_ak472"}, command = "batman", max = 1, salary = 85, admin = 0, vote = false, hasLicense = true, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_JOKER = DarkRP.createJob("Joker", { color = Color(255, 0, 255, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl" }, description = [[You are the Joker kidnap, mug, and raid people to get Batmans attention!]], weapons = {"weapon_ak472"}, command = "joker", max = 1, salary = 85, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:GetUserGroup() == "Donator" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "This job is only for Donators.", }) TEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(0, 0, 255, 255), model = {"models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl"}, description = [[You are a Police Officer you must protect the city! You cannot raid unless you have a warrent, you can't mug, or kidnap!]], weapons = {"weapon_ak472"}, command = "police", max = 8, salary = 50, admin = 0, vote = false, hasLicense = true, -- Insert customCheck here if you have one and want one. }) TEAM_THEIF = DarkRP.createJob("Theif", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a thief you must print money, raid, mug, kidnap people for money, but remember dont get caught by the cops!]], weapons = {}, command = "thief", max = 6, salary = 45, admin = 0, vote = false, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_RAPE = DarkRP.createJob("Rapist", { color = Color(255, 0, 255, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a rapist go rape people but dont get caught or you will be jailed remeber you are not allowed to rape in public! You may not raid, you may mug, You cannot kidnap!]], weapons = {}, command = "rape", max = 1, salary = 25, admin = 0, vote = true, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_CRIBS = DarkRP.createJob("Cribs Member", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a cribs member follow you leader and remember the bloods are you enemys! You cannot random kill bloodz members unless you have started a war with them!]], weapons = {}, command = "cribs", max = 5, salary = 45, admin = 0, vote = false, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_CRIBSLEADER = DarkRP.createJob("Cribs Leader", { color = Color(0, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are the cribs leader, command the cribs and try to start a war against the bloods!]], weapons = {}, command = "cribsleader", max = 1, salary = 55, admin = 0, vote = false, hasLicense = false, -- Insert customCheck here if you have one and want one. }) TEAM_BLOODS = DarkRP.createJob("Bloods Member", { color = Color(255, 255, 0, 255), model = {"models/player/group01/male_01.mdl"}, description = [[You are a bloods member follow you leader and remember the cribs are you enemys! You cannot random kill cribs members unless you have started a war with them!]], weapons = {}, command =
@Lolcats the IsUserGroup is for fadmin. And return CLIENT is so that players can see the jobs.
Sorry, you need to Log In to post a reply to this thread.