Integration

ESX Notify Integration

es_extended/client/functions.lua

function ESX.ShowNotification(message, notifyType, length)
    notifyType = notifyType or 'success'
    length = tonumber(length) or 5

    if IsResourceFound('esx_notify') then
        exports['esx_notify']:Notify(notifyType, length, message)
    elseif GetResourceState('frkn-uikit') == 'started' then
        exports['frkn-uikit']:Notify(notifyType, length, message)
    end
end

Esx Progressbar Integration

es_extended/client/functions.lua

function ESX.Progressbar(message, length, options)
    length = tonumber(length) or 5000
    options = options or {}

    if IsResourceFound('esx_progressbar') then
        return exports['esx_progressbar']:Progressbar(message, length, options)
    elseif GetResourceState('frkn-uikit') == 'started' then
        local progressModel = options.progressModel or "progressbar-1"
        local label = message or "Processing..."
        local duration = length or 5000
        local useWhileDead = options.useWhileDead or false
        local canCancel = options.canCancel ~= false
        local disableControls = options.disableControls or {
            disableMovement = false,
            disableCarMovement = false,
            disableMouse = false,
            disableCombat = true,
        }

        local anim = options.anim or {}
        local prop = options.prop or {}
        local propTwo = options.propTwo or {}
        local onFinish = options.onFinish
        local onCancel = options.onCancel

        exports['frkn-uikit']:Progressbar(progressModel, label, duration, useWhileDead, canCancel, disableControls, anim, prop, propTwo, onFinish, onCancel)
    else
        print(('[FRKN-UIKIT] Progressbar fallback: %s (%sms)'):format(message, length))
    end
end

Qb Notify Integration

qb-core/server/player.lua

qb-core/client/functions.lua

Qb Progressbar Integration

qb-core/client/functions.lua

Qbox Notify Integration

qbx_core/server/functions.lua

qbx_core/client/functions.lua

Qbx Progressbar Integration

qbx_core/bridge/qb/client/functions.lua

Ox lib Integration

ox_lib/resource/interface/client/notify.lua

ox_lib/resource/interface/client/progressbar.lua

ox_lib/resource/interface/client/textui.lua

Last updated