qbcore-framework / qb-weathersync

Weather System Used With QB-Core :sun_behind_rain_cloud:
GNU General Public License v3.0
23 stars 142 forks source link

prevent seconds from running when freezeTime enabled. #46

Closed MatthewRorke closed 2 years ago

MatthewRorke commented 2 years ago

When the seconds exceed the amount of seconds required to make up a minute, the game will allow for a minute to have passed.

We have to ensure, when time is frozen, to set the second variable back to 0 for the duration of the freezetime, to prevent time from still passing.

This fixes issue #44