JRS COREالوثائق
مرجع الـ API

شريط التقدم

Create a progress bar in your scripts

Note

جهة الكلاينت

Initiate the progress bar, use it at the top of your script.

lua
local progressbar = exports.jrs_progressbar:initiate()
start#

Start your progress UI.

messagestringrequired

The message that will be displayed in the progress bar.

durationnumberrequired

How long the progress bar is displayed, in milliseconds.

callbackfunctionrequired

The function that is called when the progress bar is done.

themestringrequired

The theme of the progress bar: linear, circle or innercircle.

lua
progressbar.start("Loading Example", 20000, function()
    print('DONE!!!!')
end, 'linear')
JRS Core · فريمورك RedM مجاني ومفتوح المصدر · من فريق JRS