Skip to content

Commit

Permalink
feat(timer): adjust restart method docs
Browse files Browse the repository at this point in the history
for my PR overextended/ox_lib#667

Signed-off-by: Frowmza <[email protected]>
  • Loading branch information
Frowmza authored Jan 16, 2025
1 parent 2c4b2b1 commit 495e696
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/ox_lib/Modules/Timer/Shared.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ print(timer:getTimeLeft()) -- {ms = 5000, s = 5.00, m = 0.08, h = 0.00 }
Resets and starts the timer.

```lua
timer:restart()
timer:restart(async, onEnd)
```

- async: `boolean`: `false` to block the execution, `true` to create a new thread and avoid blocking the execution.
- onEnd: `boolean` | `function` : Specifies a custom onEnd function, or controls whether the original onEnd function will execute or not

#### Example

```lua
Expand Down

0 comments on commit 495e696

Please sign in to comment.