ULX Ranks And Access

I need help with ULX. I can make it so VIP have access to exlusive darkrp jobs, but I want admins and moderators to be able to have those classes as well. Any leads?

http://wiki.darkrp.com/index.php/Donator_Job_configuration

Take a look at that it’s all there :slight_smile: good luck :stuck_out_tongue:

With the example in the above page already

[lua]customCheck = function(ply) return ply:GetNWString(“usergroup”) == “donator” end[/lua]

Just have

[lua]customCheck = function(ply) return ply:GetNWString(“usergroup”) == “donator” or ply:IsAdmin() end[/lua]

Instead

Or

[lua]customCheck = function(ply) return ply:GetNWString(“usergroup”) == “donator” or “mod” or “admin” or “superadmin” end[/lua]

Just use the or statement

that last 1 wouldnt really work very well. Try this:
[lua] customCheck = function(ply) return CLIENT or table.HasValue({“donator”, “mod”, “admin”, “superadmin”}, ply:GetNWString(“usergroup”)) end[/lua]