LibertyCode
LibertyCode
  • Welcome
  • lc_adminmenu
    • Introduction
    • Installation
    • Avatars
    • Screenshots
    • Bridge
      • Server
      • Client
    • Player functions
    • Permissions
      • Permission Groups
      • Discord Permissions
    • Exports
Powered by GitBook
On this page
  • How do I give myself permissions?
  • Possibilities are endless
  1. lc_adminmenu

Permissions

PreviousPlayer functionsNextPermission Groups

Last updated 4 months ago

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 .

server.cfg
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.

Framework
Command

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.

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.

this forum thread