> For the complete documentation index, see [llms.txt](https://uiforge-documentation.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://uiforge-documentation.gitbook.io/doc/uiforge-progressbar/exports.md).

# Exports

## isDoingSomething

```lua
RegisterCommand("isdoingsomething", function()
    local animation = {
        animDict = "anim@heists@ornate_bank@hostages@hitman",
        anim = "hitman_c",
        flags = 1,
    }
    if (exports["uiforge-progressbar"]:isDoingSomething()) then
        return print("player not available")
    else
        TaskPlayAnim(PlayerPedId(), animation.animDict, animation.anim, 3.0, 3.0, -1, animation.flags or 1, 0, false, false, false)
    end
end)
```

## Progress

```lua
exports['uiforge-progressbar']:Progress({
        name = name:lower(),
        duration = duration,
        label = label,
        useWhileDead = useWhileDead,
        canCancel = canCancel,
        controlDisables = disableControls,
        animation = animation,
        prop = prop,
        propTwo = propTwo,
        icon = icon
    }, function(cancelled)
        if not cancelled then
            if onFinish then
                onFinish()
            end
        else
            if onCancel then
                onCancel()
            end
        end
    end)
```
