# 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)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://uiforge-documentation.gitbook.io/doc/uiforge-progressbar/exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
