Integrando com o Electron

Com este evento é possivel sincronizar os banimentos do Electron com nossa API.

AddEventHandler("ElectronAC:playerBanned", function(source, reason, details, automatic) 
    user_source = tonumber(source)
    if not user_source or not reason then
        return
    end

    local user_id = vRP.getUserId(user_source)
    if not user_id then return end

    local identity = vRP.userIdentity(user_id)
    local steamHex = identity and identity.steam or nil

    if steamHex then
        pcall(function()
            local rnld_reason = ("Banimento aplicado pelo Electron: %s\n"):format(reason)
            exports['rnld_api']:toggleBan({ steam = steamHex, reason = rnld_reason })
        end)
    end
end)

Atualizado