PAC3 Restriction

I was wondering if i could enable PAC3 for certain groups only, because mingebags always exploit it and etc and the only code i found about it was not working:



hook.Add("PrePACConfigApply", "respect only", function(ply, outfit_data)
    if not ply:IsRespect() then
        return false, "Fuck off, mingebag."
    end
end)


Probably because IsRespect() doesn’t exist in vanilla.




hook.Add("PrePACConfigApply", "pac_restrictgroups", function(ply, outfit_data)
    if (!ply:GetUserGroup() == "superadmin") then
        return false, "Fuck off, mingebag."
    end
end)


Try something like that.

PAC3 restrictions are kind of loose. From my personal experience, I had to disable a few of the features in the spawnmenu tab for PAC3 since it would screw with DarkRP when players attempted to load their PAC outfits.