• A Easier Way To Custom Check?
    6 replies, posted
Hi, I'm trying to make a DarkRP Job which is Donator only. The only problem is I will need to let Staff That Have donated to get the Job aswell. Is there some way I can make a Value which is the equivalent of all the Donator Ranks? i.e Donator = ULX User groups (LIST OF DONATOR JOBS) customCheck = function(ply) return CLIENT or table.HasValue({"Donator"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "Donator Only!",
I found the solution Dw!
What is the solution?
Unless I misunderstand the problem, you would define the donator table outside of the CustomCheck function, so it'd look something like this local donationRanks = {"Donator","DonatorV2"} customCheck = function(ply) return CLIENT or table.HasValue(donationRanks, ply:GetNWString("usergroup")) end If the issue was related to inheritance, it might use the ULib CheckGroup function: customCheck = function(ply) return CLIENT or ply:CheckGroup("Donator") end
How would YOU use the SteamID Custom Check? Thanks, Winter <3
customCheck = function( ply )     return ply:SteamID() == "steamid" end
Sorry, you need to Log In to post a reply to this thread.