Permissions
What about Permissions?
By default, all admins on your server have read access (opening the menu and seeing things) while superadmins on your servers have write access (opening the menu, seeing things plus editing things).
You can change that behavior by using the LSAC.userperms.PlayerHasPermission hook and doing something like
local mycoolgroups = {}
mycoolgroups["donator"] = true
mycoolgroups["girlfriend"] = true
hook.Add("LSAC.userperms.PlayerHasPermission", "ishouldntbedoingthis", function(ply, perm)
if (perm:find(".read")) then -- who can read from the menu
if (mycoolgroups[ply:GetUserGroup()]) then
return true
end
if (ply:IsAdmin()) then
return true
end
end
-- everyone who can read and write using the menu
if (ply:IsSuperAdmin()) then
return true
end
-- everyone not affected by these rules can not do anything with the menu (no read, no write)
return false
end)
What permissions are there?
- menu.read
- menu.write
- menu.abortpunishments.write
- menu.statistics.read
- menu.accesslogs.read
- menu.detectionlogs.read
- menu.errorlogs.read
- menu.genericlogs.read
- menu.modules.read
- menu.modules.write
- menu.settings.read
- menu.settings.write
- testcheat.read
- familyshareblocker.bypass
- vpnblocker.bypass