progressBar
exports["RiP-Notify"]:progressBar(time, title, callback)
This function activates a progress-bar with a callback when finished
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
time | Integer | No | Time in seconds |
title | String | Yes | Progress text (nil to disable) |
callback | Function/Boolean | Yes | Executed when progressbar is finished |
Example
exports["RiP-Notify"]:progressBar(9, "IN PROGRESS..", function(callback)
if callback then
print("progress finished")
else
print("progress error")
end
end)