V1 knows one level of access: admin. There are no per permission rules.
Who opens /jckssetup
A player opens the setup wizard when one of these is true:
- they have the ACE
jcks.admin, - they have the ACE
command, - their framework group is in
AdminGroups.
add_ace group.admin jcks.admin allow
add_principal identifier.license:YOUR_LICENSE group.adminadd_ace allows the group, add_principal puts your account into it. On Qbox an admin flag in the database or in txAdmin does not count, only ACE.
| Framework | Group check |
|---|---|
| ESX | xPlayer.getGroup() is in AdminGroups |
| QBCore | QBCore.Functions.HasPermission(src, group) for a group in AdminGroups |
| Qbox | ACE group.<name> or <name> for a group in AdminGroups |
The IsAdmin export
exports.jcks_bridge:IsAdmin(src, groups?) returns true for the console, when Editable.IsAdmin(src) in server/editable.lua returns true, or when the player matches groups. groups defaults to AdminGroups. JCKS resources use this export for their own admin checks.
if not exports.jcks_bridge:IsAdmin(source) then return endAdmin flag
The bridge sets Player(src).state['jcks:admin'] for every player and refreshes it every minute. Only the server writes it. A client write is reverted and reported. JCKS windows and the Spotlight admin entries of jcks_ui read it.