JRS CORE文档
API 参考

progressbar

Create a progress bar in your scripts

Note

Client side

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 TEAM 出品