qbcore-framework / qb-anticheat

Anticheat System For QB-Core
GNU General Public License v3.0
30 stars 116 forks source link

Error in Console #37

Open aqade opened 2 years ago

aqade commented 2 years ago

So i've just added qb-anticheat to protect the server against people, that want to use any kind of triggers to ruin it. But when I got it added and started up the server, right after I join I get this error. image

When I look at the code in qb-anticheat I see this:

function GetPermissions()
    QBCore.Functions.TriggerCallback('qb-anticheat:server:GetPermissions', function(_group)
        for k,_ in pairs(_group) do -- This line that has some bad arguments
            if Config.IgnoredGroups[k] then
                checkUser = false
                break
            end
            checkUser = true
        end
    end)
end

It has a handler in qb-core which is this:

RegisterNetEvent('QBCore:Client:TriggerCallback', function(name, ...)
    if QBCore.ServerCallbacks[name] then
        QBCore.ServerCallbacks[name](...) -- This line is the handler
        QBCore.ServerCallbacks[name] = nil
    end
end)

Both scripts are latest versions. Any idea or fix for this ?

LielR commented 2 years ago

Same.