🕸️UI

Here you can find anything about the ui.

How do I even open the UI?

First of all, you will need to fix your ACE permissions in your server configuration. You will need to go to your server.cfg and find where you set your permissions. It should look like this:

add_ace <group> <command/permissions> allow

You will need to add this permission to allow administrators to use it:

add_ace <group> command.queuepanel allow # allow queue panel command

Only then you can use the /queuepanel command.

Okay, Can I do it with QBCore permissions instead?

Yes of course! I made a small snippet for it 😉 Replace the server/functions.lua to this.

server/functions.lua
local QBCore = exports['qb-core']:GetCoreObject()

function HasPermission(src)
    return QBCore.Functions.HasPermission(src, 'god')
end

QBCore.Commands.Add('queuepanel', 'Opens queue panel', {}, false, function(source, args)
    TriggerClientEvent('ts-queue:client:openQueueNui', source, GetPlayersTable())
end, 'god')

Last updated