> For the complete documentation index, see [llms.txt](https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/scripts/progressbar.md).

# Progressbar

## Preview:

<div align="left"><figure><img src="/files/BpUyXKXWdvl6GBmyMrvl" alt="pic" width="282"><figcaption><p>This is how it looks ingame!</p></figcaption></figure></div>

Start the Resource in your Server.cfg

```javascript
start mfp_progressbar
```

## Integration in your scripts

add the following lines to your script, where you want the progressbar to be triggered.

```lua
exports['mfp_progressbar']:startUI(yourtime, "YOURMESSAGE")
-- yourtime has to be INT in ms, YYOURMESSAGE a String
```

This is an example use of it:

```lua
exports['mfp_progressbar']:startUI(10000, "Repair Vehicle...") 
-- this message is 10000ms = 10sec triggered. 
```

Thats it. Simple to use, right? If you need help use [#public-support](https://discord.com/channels/901573350076342312/903827202108424253) to ask our community.
