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

# Progressbar

Adding the progressbar system to your framework.

### Usage

```lua
exports['ZSX_UI']:ProgressBar('Custom progressbar...', 
    3000, {
        freezeEntity = true,
        onComplete = function()
            --some code
        end,
        disableControls = "all",
    }
)
```

```lua
TriggerEvent('ZSX_UI:ProgressBar', 'Custom progressbar...', 
    3000, {
        freezeEntity = true,
        onComplete = function()
            --some code
        end,
        disableControls = "all",
    }
)
```

### Structure

Export

```lua
exports['ZSX_UI']:ProgressBar(text, 
    duration, {
        freezeEntity = bool,
        onComplete = function,
        disableControls = string/array,
    }
)
```

Event

```lua
TriggerEvent('ZSX_UI:ProgressBar', text, 
    duration, {
        freezeEntity = bool,
        onComplete = function,
        disableControls = string/array,
    }
)
```
