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