• DarkRP Donor Jobs 2.5
    5 replies, posted
Yeah, I've gone through most of the threads in regards to the ULX donor only jobs. Here's my class. [CODE]TEAM_DMOB = DarkRP.createJob("Mobster", { color = Color(238, 99, 99, 255), model = "models/humans/mafia/male_06.mdl", description = [[Donors Only: You are a Mobster with no boss, you live to make money]], weapons = {"lockpick", "keypad_cracker"}, command = "dmob", max = 3, salary = 60, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup("donator") end, CustomCheckFailMsg = "You need to be a donator to become a Mobster." })[/CODE]
So, what is the problem? Is the code not working? Do you get any client or server errors? Have you read this page on the DarkRP wiki: [URL]http://wiki.darkrp.com/index.php/Donator_Job_configuration[/URL] Also, wrap your code in [code] tags.
True, and the problem i'm getting is errors where the classes don't show up. [editline]27th June 2014[/editline] I've tried the wiki, and i've tried multiple methods, it's been bothersome.
You need to post the errors both serverside and clientside on here. Please use [noparse][code][/code][/noparse] tags in future.
There isn't an error message, it just causes the job to be invisible to all ULX user groups. Even the one I tried setting too.
Instead of ply:IsUserGroup("donator") do ply:CheckGroup("donator") - this means it'll check for any inherited groups too (assuming you've set up ULX properly).
Sorry, you need to Log In to post a reply to this thread.