mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(timer): add async argument to restart method (#567)
This commit is contained in:
@@ -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