Permissions
How do I give myself permissions?
There are several ways to give someone access to the admin menu. Best way is to add ACE permission to one of your identifiers or group. If you want to learn more about ACE permissions, you can visit this forum thread.
add_ace identifier.license:YOUR_LICENSE lc_adminmenu.owner allow
# The above line will grant user with matching identifier all permissions from "owner" group (from permission_groups.lua file)
You can also give someone permissions via framework-specific groups.
ESX
/setgroup [id] [group]
QBCore
/addpermission [id] [group]
qbx-core
ACE permissions only
Possibilities are endless
You can add your own permissions and manage them from the 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.
Custom permissions can be added in the data/permissions.lua
file.
---@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