• Gmod Darkrp custom jobs broke PLEASE HELP!
    2 replies, posted
So I added some custom jobs to my darkrp server and when I added the last job they all dissapeared ingame! My Code: TEAM_AOD = DarkRP.createJob("Admin On Duty", { color = Color(255, 20, 20, 255), model = "models/minson97/bo2/seal_masked.mdl", description = [[Make Sure People Are Following Rules And Help People.]], weapons = {"csgo_m9_marblefade", "m9k_jackhammer", "weapon_vape_mega"}, command = "aod", max = 0, salary = 200, admin = 1, vote = false, hasLicense = true, candemote = false, category = "Admin Jobs", }) TEAM_THIEF = DarkRP.createJob("Thief", { color = Color(0, 0, 0, 255), model = "models/player/arctic.mdl", description = [[You are a thief, rob people, lockpick their house and steal their plants and printers.]], weapons = {"lockpick", ""}, -- You may wanna find a pickpocket swep and add it here. command = "thief", max = 4, salary = 65, admin = 0, vote = false, hasLicense = false, category = "Criminals", }) TEAM_HITMAN = DarkRP.createJob("Hitman", { color = Color(0, 0, 0, 255), model = "models/player/leet.mdl", description = [[People hire you to take out other people, this job require you to be completely focussed. A single breath can make you loose a shot.]], weapons = {"m9k_m24"}, command = "hitman", max = 1, salary = 65, admin = 0, vote = false, hasLicense = false, category = "Criminals", }) TEAM_SS = DarkRP.createJob("Secret Service", { color = Color(100, 20, 20, 255), model = "models/player/breen.mdl", description = [[You are responsible for protecting the mayor. Take care of the old fellow, he is vanuarable to terrorists all the time! Before he enters a room, you need to make sure its secure.]], weapons = {"weapon_deagle2", "stunstick", "weaponchecker"}, command = "ss", max = 2, salary = 65, admin = 0, vote = true, hasLicense = false, ammo = { ["pistol"] = 60, }, category = "Civil Protection", }) TEAM_SWAT = DarkRP.createJob("Swat", { color = Color(25, 25, 170, 255), model = {"models/player/swat.mdl"}, description = [[The protector of every citizen that lives in the city. You have the power to arrest criminals and protect innocents. Hit a player with your arrest baton to put them in jail. Bash a player with a stunstick and they may learn to obey the law. The Battering Ram can break down the door of a criminal, with a warrant for their arrest. The Battering Ram can also unfreeze frozen props (if enabled). Type /wanted <name> to alert the public to the presence of a criminal.]], weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"}, command = "Swat", max = 4, salary = 85, admin = 0, vote = true, hasLicense = true, help = { "Please don't abuse your job", "When you arrest someone they are auto transported to jail.", "They are auto let out of jail after some time", "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.", "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect", "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect", "Type /jailpos to set the jail position" }, category = "Civil Protection", }) TEAM_VAPE = DarkRP.createJob("Vape Lord Nord", { color = Color(0, 0, 0, 255), model = "models/player/skeleton.mdl", description = [[VAPE LORD NORD.]], weapons = {"weapon_vape_custom", "weapon_vape_hallucinogenic", "weapon_vape_helium", "weapon_vape_juicy", "weapon_vape_medicinal", "weapon_vape_butterfly"}, command = "thief", max = 4, salary = 65, admin = 0, vote = false, hasLicense = false, category = "Donator", customCheck = function(ply) return table.HasValue({"donator", "vip", "admin", "superadmin", "Owner", "Co-Owner"}, ply:GetUserGroup() == "donator") end CustomCheckFailMsg = "This job is VIP only!" })
You're missing a comma after customCheck function, and you're not using table.HasValue correctly. You should be using just GetUserGroup without comparing it to anything. Check your console for errors in the future and use [code] tags.
You also have the command for vape as theif, iirc that will remove all the jobs.
Sorry, you need to Log In to post a reply to this thread.