mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-25 20:34:47 +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
|
return self.private.paused
|
||||||
end
|
end
|
||||||
|
|
||||||
function timer:restart()
|
function timer:restart(async)
|
||||||
self:forceEnd(false)
|
self:forceEnd(false)
|
||||||
Wait(0)
|
Wait(0)
|
||||||
self.private.currentTimeLeft = self.private.initialTime
|
self.private.currentTimeLeft = self.private.initialTime
|
||||||
self.private.startTime = 0
|
self.private.startTime = 0
|
||||||
self:start()
|
self:start(async)
|
||||||
end
|
end
|
||||||
|
|
||||||
function timer:getTimeLeft(format)
|
function timer:getTimeLeft(format)
|
||||||
|
|||||||
Reference in new issue
Block a user