• How do i make Donator jobs invisible?
    1 replies, posted
I found a code that works for me because it allows multiple groups. I tried removing the or return but it left me with a lua error: [code] CustomCheckFailMsg = "You need to donate for this job", customCheck = function(ply) return CLIENT or table.HasValue({"Donator", "VIP", "VIP+", "DonerAdmin", "Global Admin", "Coder", "Server Manager", "superadmin", "DonerMod", "Owner"}, ply:GetNWString("usergroup")) end[/code]
[QUOTE=TH3 T0MINATOR;46523065]I found a code that works for me because it allows multiple groups. I tried removing the or return but it left me with a lua error: [code] CustomCheckFailMsg = "You need to donate for this job", customCheck = function(ply) return CLIENT or table.HasValue({"Donator", "VIP", "VIP+", "DonerAdmin", "Global Admin", "Coder", "Server Manager", "superadmin", "DonerMod", "Owner"}, ply:GetNWString("usergroup")) end[/code][/QUOTE] [code] CustomCheckFailMsg = "You need to donate for this job", customCheck = function(ply) return table.HasValue({"Donator", "VIP", "VIP+", "DonerAdmin", "Global Admin", "Coder", "Server Manager", "superadmin", "DonerMod", "Owner"}, ply:GetNWString("usergroup")) end[/code]
Sorry, you need to Log In to post a reply to this thread.