πŸ‘¨β€πŸ«Get Role

Here you can use built in log exports

Simple Rank Check

local perms = exports["pug-adminmenu"]:GetPermission(source)
local Ranks = {
    "god",
    "admin",
    "mod",
    "trialmod",
}
for _, v in ipairs(Ranks) do
    if type(perms) == 'string' then
        if perms == v then
            return true
        end
    elseif type(perms) == 'table' then
        if perms[v] then
            return true
        end
    end
end

Last updated