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