> 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

This is how to use our Progressbar

## Preview:

<div align="left"><figure><img src="https://2516676114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSY8sJ1nJUQmkbcCAJaSj%2Fuploads%2FxVrfiWS21ZpJbGXnZsfI%2F4c9415cf305a207d095bdb3f4ba28db9679ddbfd.jpg?alt=media&amp;token=f59f4549-41e1-4b52-a941-1963cc8fb09a" 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.
