server-beta icon indicating copy to clipboard operation
server-beta copied to clipboard

Timer component: pause/resume

Open Vince0789 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. N/A

Describe the solution you'd like Allow to pause and resume timers at any point. E.g. you set a timer for 5000 milliseconds. After 2000 milliseconds have passed, pause() is called on it. When resume() is called at any later point in time, the timer should continue with the 3000 milliseconds it had left when it was paused.

Describe alternatives you've considered Can be done in Pawn by storing the remaining time using GetTimerRemaining, killing the timer and then setting it again with whatever time was left at a later point, but it seems trivial to just add it to the component and removes the need to create an extra global in Pawn.

Additional context N/A

Vince0789 avatar Oct 01 '24 18:10 Vince0789

Timer pause and resume https://github.com/openmultiplayer/open.mp/pull/1013

NoPressF avatar Oct 18 '24 13:10 NoPressF