# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/scripts/progressbar.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
