I want this bit of code so it allows users to see the Jobs in the Job menu but can't access it... At the minute only people with the Ulx Ranks In the Local Variable DonatorT3 can see it but I want everyone to see it but only Donator T3 ranks to use it
customCheck = function(ply) return
table.HasValue(DonatorT3, ply:GetNWString("usergroup"))
end,
DonatorT3 =
local DonatorT3 = { "Donator Tier 1", "Donator Tier 2", "Donator Tier 3", "Trial-Moderator T1", "Trial-Moderator T2", "Trial-Moderator T3", "Moderator T1", "Moderator T2", "Moderator T3", "Admin T1", "Admin T2", "Admin T3", "Jr Admin T1", "Jr Admin T2", "Jr Admin T3", "Staff Manager T1", "Staff Manager T2", "Staff Manager T3", "Developer T1", "Developer T2", "Developer T3", "Owner", "Co-Owner" }
Unrelated | Why do you have so many staff ranks???
Well I want a Certain amount of Ranks but then I have 3 Vip Tiers so I need a VIP Rank for each one
Adding a "CLIENT or" before the table.HasValue would make the function return true for clients at all times, which would allow them to see it.
customCheck = function(ply)return CLIENT or table.HasValue(DonatorT3, ply:GetNWString("usergroup"))
end,
That works Great! Thanks! Is there a way to put a Error message tho? i.e 'This Is A Donator Job' When they try to join the job.
Sorry, you need to Log In to post a reply to this thread.