mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-14 17:23:55 +00:00
fix(timer): add async argument to restart method (#567)
This commit is contained in:
1 file changed
+2
-2
@@ -98,12 +98,12 @@ function timer:isPaused()
|
||||
return self.private.paused
|
||||
end
|
||||
|
||||
function timer:restart()
|
||||
function timer:restart(async)
|
||||
self:forceEnd(false)
|
||||
Wait(0)
|
||||
self.private.currentTimeLeft = self.private.initialTime
|
||||
self.private.startTime = 0
|
||||
self:start()
|
||||
self:start(async)
|
||||
end
|
||||
|
||||
function timer:getTimeLeft(format)
|
||||
|
||||
Reference in new issue
Block a user