Permissions

You can add your own permissions and manage them from your admin panel!

Okay, but what's the point of adding more permissions?

We created our admin menu script to give users as much freedom as possible. We gave the ability to add your own functions to our script, and each function can be restricted by permission.

How to add custom permissions?

To add custom permission you need to edit data/permissions.lua file.

data/permissions.lua
---@class Permission
---@field label string
---@field name string

---@type Permission[]
return {
  ...,
  {
    label = 'Custom permission',
    name = 'custom_permission'
  }
}

Now restart the script and you are ready to use your newly added permissions.

Last updated