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?
[url]http://wiki.darkrp.com/index.php/Donator_Job_configuration[/url]
Take a look at that it's all there :) good luck :P
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
[QUOTE=TeamEnternode;47283731]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[/QUOTE]
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]
Sorry, you need to Log In to post a reply to this thread.