Mobius1/rprogress

Enhancement Add a timer

UnknownNuggz opened this issue · 1 comments

For example, the minigame is only shown for 2 seconds, if the minigame hasnt been completed in 2 seconds return false and get rid of the minigame from screen

Added in v0.7.8

    exports.rprogress:MiniGame({
        Difficulty = "Easy",     
        Timeout = 2000, -- duration before minigame is cancelled 
        onTimeout = function()
            -- do something on timeout
        end,
        onComplete = function(success) end,
    })