👮
Five-O M
  • Five-O M
  • 💻Client
    • Server Callbacks
    • Progress Bars
    • Keypress
    • Notifications
    • Menus
    • Blips
    • Vehicles (to-do)
    • Peds (to-do)
    • Callouts (to-do)
    • Client Callbacks (to-do)
  • 💿Server
    • Server Callbacks
    • Client Callbacks (to-do)
Powered by GitBook
On this page
  • DrawProgressBar(text, time, r, g, b)
  • HideProgressBar()
  1. Client

Progress Bars

Built-in, configurable progress bar.

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

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

  • text* (string) - text to display adjacent to the progress bar

  • time* (number) - time to display progress bar (in ms)

  • r* (number) - red colour value of the progress bar (0 - 255)

  • g* (number) - green colour value of the progress bar (0 - 255)

  • b* (number) - blue colour value of the progress bar (0 - 255)

* = required arguments

Example:

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

PreviousServer CallbacksNextKeypress

Last updated 2 years ago

💻