Progressbar

📘 FRKN Progressbar Export

A custom progressbar system for FiveM, inspired by QBCore.Functions.Progressbar, but built into frkn-notify.


📌 Usage

exports['frkn-notify']:Progressbar(
    "progressbar-1",            -- default type
    "Doing something...",      -- label (text displayed)
    5000,                      -- duration (ms)
    false,                     -- useWhileDead
    true,                      -- canCancel
    {                          -- disableControls
        disableMovement = false,
        disableCarMovement = false,
        disableMouse = false,
        disableCombat = true,
    },
    {                          -- anim
        animDict = "mp_suicide",
        anim = "pill",
        flags = 49,
    },
    {},                        -- prop (optional)
    {},                        -- propTwo (optional)
    function()                 -- onFinish
        print("Task finished successfully")
    end,
    function()                 -- onCancel
        print("Task cancelled")
    end
)

Last updated