🌐
MFPSCRIPTS- Documentation
  • πŸ”Documentation
  • 🐌Scripts
    • πŸ“±PhoneBattery
      • βš™οΈInstallation
      • ☎️Addidtional Phones
        • πŸ“±RoadPhone
        • πŸ“±GCPhone
        • πŸ“±HighPhone
        • πŸ“±D-Phone
        • πŸ“±NPWD
    • πŸ’ΈBanking
      • βš™οΈInstallation
    • πŸš”Policejob
      • βš™οΈInstallation
      • πŸ”—Script Intergrations
      • πŸ‘¨β€πŸ’»Developers
    • 🚧Progressbar
    • ℹ️Notification
    • πŸ—‘οΈScrapyard
    • 🎬HUD
    • πŸ“²Dispatches-App for LB-Phone
    • πŸ—ΊοΈMFP_AdvancedBlips
  • πŸ₯©Additional
    • βš™οΈINSTALL SCRIPTS
    • πŸ“΄FiveStatus
  • 🚫General Errors
    • πŸ“€es_extended
Powered by GitBook
On this page
  • Preview:
  • Integration in your scripts
  1. Scripts

Progressbar

This is how to use our Progressbar

PreviousDevelopersNextNotification

Last updated 5 months ago

Preview:

Start the Resource in your Server.cfg

start mfp_progressbar

Integration in your scripts

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

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

This is an example use of it:

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

Thats it. Simple to use, right? If you need help use to ask our community.

#public-support
🐌
🚧
This is how it looks ingame!
pic
Page cover image