local groupsTable = {
"oneradmin",
"Head.Admin",
"Console",
"big.Admin",
"Master",
"Moafek",
"Sozr",
"FDR",
}
addEventHandler("onPlayerLogin", root,
function(_, acc)
local accName = getAccountName(acc)
for _, groupName in ipairs(groupsTable) do
local group = aclGetGroup(groupName)
if group then
if isObjectInACLGroup("user."..accName, group) then
setElementData(source, "isAdmin", true)
break
end
end
end
end)