Connectqueue Integration

This is optional, what we do with this is that the VIP system automatically adds and manages the queue priority of users with VIPs. To enable this, all we have to do is the following:

Add the following code at the end of the file connectqueue/shared/sh_queue.lua

function Queue:LoadVips(listaVip)
    for _, v in pairs(listaVip) do
        if not _Queue.Priority[v.identifier] then
            _Queue.Priority[v.identifier] = v.priority
        end
    end
end

RegisterNetEvent('Queue:LoadVips', function(listaVip)
    Queue:LoadVips(listaVip)
end)

Last updated