PivityGmodStore

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?

  1. menu.read
  2. menu.write
  3. menu.abortpunishments.write
  4. menu.statistics.read
  5. menu.accesslogs.read
  6. menu.detectionlogs.read
  7. menu.errorlogs.read
  8. menu.genericlogs.read
  9. menu.modules.read
  10. menu.modules.write
  11. menu.settings.read
  12. menu.settings.write
  13. testcheat.read
  14. familyshareblocker.bypass
  15. vpnblocker.bypass