How access works
The system uses two methods to grant access to the admin panel: a main admin defined in the config and users stored in the database. Both systems work together.
There are two levels: Admin and Staff. Both can open the panel, but only Admin has full control (user management and settings). Staff has limited access.
Main admin (config.lua)
This is the primary access. It is defined in config.lua and always has full permissions. It exists so you can access the panel on a fresh server before creating database users.
Example:
To get your identifier, you can use txAdmin or a command like this:
If you don’t want to use this system, just leave the identifier empty.
Database users
The system also stores users in a table called qs_licenses_users.
This is where you define who is Admin or Staff.
The system automatically detects players by matching their identifiers (license, steam, discord, etc).
SQL example:
permission_level = 1 → Adminpermission_level = 2 → Staffactive = 1 → Access enabled
Adding users from the panel
You can add users directly from the Admin Panel without touching the database.
Select an online player, choose Admin or Staff, and save.
The system stores the correct identifier (not the temporary server ID).
Removing access
You can remove access from the panel or directly from the database.
Disabling keeps the record, deleting removes it completely.
SQL example:
Commands
The panel is opened with a configurable command.
Example:
There is also a command to reposition the UI:
Open panel from another script
You can trigger the panel from another resource.
Example:
The system always checks permissions before opening it.
