# Progressbar

## MSK.Progress.Start

Shows a progressbar. `color` is optional and can be set in `config.lua`.

<mark style="color:red;">**Parameters**</mark>\
**playerId** - `number` - Players server id \
**duration** - `number <miliseconds>` - The time in miliseconds\
**text** - `boolean` - Text\
**color** - `string` - Color as hex - **Optional**

```lua
MSK.Progress.Start(playerId, duration, text, color)

-- Example 1
MSK.Progress.Start(playerId, 5000, 'Progressing...') -- default color set in config.lua
Wait(5000)

-- Example 2
MSK.Progress.Start(playerId, 5000, 'Progressing...', "#5eb131") -- custom color
Wait(5000)

-- As an Export:
exports.msk_core:Progressbar(playerId, duration, text, color)
```

## MSK.Progress.Stop

Stops the current ProgressBar.

<mark style="color:red;">**Parameters**</mark>\
**playerId** - `number` - Players server id

```lua
MSK.Progress.Stop(playerId)

-- As an Export:
exports.msk_core:ProgressStop(playerId)
```
