> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/ui-and-interaction/progress/progress-options.md).

# Progress Options

`LT.Progress.Open(options, cb, isQB)` shows a timed progress bar. Set `isQB = true` for QB progressbar format.

## ox\_lib format (default)

```lua
local success = LT.Progress.Open({
    duration = 5000,
    label = 'Repairing vehicle...',
    useWhileDead = false,
    canCancel = true,
    disable = {
        move = true,
        car = true,
        combat = true,
    },
    anim = {
        dict = 'mini@repair',
        clip = 'fixing_a_player',
    },
}, function(success)
    if success then print('Done!') end
end)
```

| Field          | Type              | Description                                           |
| -------------- | ----------------- | ----------------------------------------------------- |
| `duration`     | number            | Time in milliseconds                                  |
| `label`        | string            | Text shown on the bar                                 |
| `style`        | string            | `'bar'` or `'circle'` (ox\_lib, lt-ui, wasabi\_uikit) |
| `useWhileDead` | boolean           | Allow while player is dead                            |
| `canCancel`    | boolean           | Player can cancel with a key                          |
| `disable`      | table             | Disable `move`, `car`, `combat`, `mouse`              |
| `anim`         | table             | `{ dict, clip, flag }` animation to play              |
| `prop`         | table or table\[] | Single prop or array of up to two props               |

## QB format (`isQB = true`)

```lua
LT.Progress.Open({
    name = 'repair',
    duration = 5000,
    label = 'Repairing...',
    useWhileDead = false,
    canCancel = true,
    controlDisables = {
        disableMovement = true,
        disableCarMovement = true,
        disableCombat = true,
        disableMouse = true,
    },
    animation = {
        animDict = 'mini@repair',
        anim = 'fixing_a_player',
    },
}, nil, true)
```

Back to [Progress](/ltbridge/ui-and-interaction/progress.md)
