This is the code I need to use to restrict pac3 to certain groups:
-- add/change rank names here in the same format
local ranks = {
["pac3"] = true,
["owner"] = true,
["admins"] = true,
["superadmin"] = true,
}
CustomCheckFailMsg = "Donators only",
hook.Add("PrePACEditorOpen", "PACRankRestrict", function(ply)
if not ranks[ply:GetUserGroup()] then
return false,"Insufficient rank to use PAC."
end
end)
I want to make it so if they buy PAC3 Package they have it permanently so when they buy another package it doesn't get removed.