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

Reworking time sync #52

Closed CodeRedDev closed 2 years ago

CodeRedDev commented 2 years ago

This reworks the time sync so that time is synced with the real (ooc) time and with meaningful time calculations (see #51).

It also adds the command resettime to reset the time to real time after time was used.

Plus the commands are now handled over QBCore.Commands

CodeRedDev commented 2 years ago

We're discussing some issue in this guilded post

nullvariable commented 2 years ago

Hi @CodeRedDev thanks for your work here! I'm having trouble fully digesting all of the changes here. Would it be possible to split these up into distinct PRs, one for the command changes, and one for the time calculations?

CodeRedDev commented 2 years ago

@nullvariable Sure. The time calculations have some problems though. As the time in GTA obviously goes faster than real time there are a lot of perceptible jumps. Unfortunately I do not know if this can be optimized by doing server time pushes more often or the like.

CodeRedDev commented 2 years ago

QBCore Commands migration is now in PR #56

w4fflz commented 2 years ago

Hello,

Is this still being worked on or need to be closed?

CodeRedDev commented 2 years ago

Currently I'm not working on any scripting so this might be closed.