# Progress Bars

## `DrawProgressBar(text, time, r, g, b)`

Draws a progress bar with the specified parameters in the bottom right of the screen.

* text<mark style="color:red;">\*</mark> (string) - text to display adjacent to the progress bar
* time<mark style="color:red;">\*</mark> (number) - time to display progress bar (in ms)
* r<mark style="color:red;">\*</mark> (number) - red colour value of the progress bar (0 - 255)
* g<mark style="color:red;">\*</mark> (number) - green colour value of the progress bar (0 - 255)
* b<mark style="color:red;">\*</mark> (number) - blue colour value of the progress bar (0 - 255)

<mark style="color:red;">\*</mark> = required arguments

Example:

```lua
-- Display a green loading bar labelled 'Eating'
FOM.DrawProgressBar('Eating', 1000, 0, 255, 0)
```

## `HideProgressBar()`

Hides the currently displayed progress bar. Takes no parameters.

Reference: `utils/cl_utils.lua`
