Personalization

To customize the Notification and ProgressBar, you must go to client/cl_utils.lua

Custom Notification

function utils.Notify(type, msg)
    if Config.FrameWork == "esx" then
        ESX.ShowNotification(msg, type, 5000)
    elseif Config.FrameWork == "qbcore" then
        QBCore.Functions.Notify(msg, type, 5000)
    else
        print("configure your notification system")
    end
end

Custom ProgressBar

function utils.ProgressBar(msg, time)
    lib.progressCircle({
        duration = time,
        label = msg,
        position = "bottom",
        useWhileDead = false,
        canCancel = true,
        disable = {
            move = true,
            combat = true,
        },
        anim = {
            dict = "misscarsteal4@actor",
            clip = "actor_berating_loop"
        },
    })
end

Last updated