> For the complete documentation index, see [llms.txt](https://inside-scripts.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inside-scripts.gitbook.io/documentation/free-scripts/bridge-and-library/functions/bridge/progress-bar/client.md).

# Client

## <mark style="color:green;">show</mark>

### Usage

```lua
bridge.progressbar.show(data, finish, cancel)
```

* data: `object`
  * duration: `number`
  * title: `string`
  * useWhileDead(optional): `boolean`
  * canCancel(optional): `boolean`
  * animation(optional): `object`
    * dict: `string`
    * anim: `string`
    * flag: `number`
  * disable(optional): `object`
    * move(optional): `boolean`
    * car(optional): `boolean`
    * combat(optional): `boolean`
    * mouse(optional): `boolean`
    * sprint(optional): `boolean`
* finish: `function`
* cancel: `function`

### Example

```lua
bridge.progressbar.show({
    duration = 5000,
    title = "Example Progress Bar",
    useWhileDead = false,
    canCancel = true,
}, function()
    print("success")
end, function()
    print("cancel")
end)
```

```lua
bridge.progressbar.show({
    duration = 5000,
    title = "Example Progress Bar",
    useWhileDead = false,
    canCancel = true,
    animation = {
        dict = "rcmnigel1c",
        anim = "hailing_whistle_waive_a",
        flag = 0,
    },
    disable = {
        move = true,
        car = true,
        combat = true,
    },
}, function()
    print("success")
end, function()
    print("cancel")
end)
```

## <mark style="color:green;">isActive</mark>

### Usage

```lua
bridge.progressbar.isActive()
```

### Example

```lua
bridge.progressbar.isActive()
```

* return: `boolean`

## <mark style="color:green;">cancel</mark>

### Usage

```lua
bridge.progressbar.cancel()
```

### Example

```lua
bridge.progressbar.cancel()
```
