Closed ChristianBDev closed 1 year ago
LGTM
This seems like bad practice to add a wait time in the middle of two update events.
I would recommend that this issue is resolved by caching the distance in Lua and moving the database update to a less frequently called event, or perhaps on a vehicle exit event even.
Either way, this should be considered further.
This seems like bad practice to add a wait time in the middle of two update events.
I would recommend that this issue is resolved by caching the distance in Lua and moving the database update to a less frequently called event, or perhaps on a vehicle exit event even.
Either way, this should be considered further.
If you have a better way to do this add it here
@tom-osborne we shouldn't cache the distance, as if you crash and get flown out the vehicle, it will still keep track. When you exit the vehicle, it should stop the driving distance automatically, Wait(3000) should be good enough.
This PR has had 60 days of inactivity & will close within 7 days
Describe Pull request Makes the Driving Distance update every 60 seconds/minute
If your PR is to fix an issue mention that issue here
60 This is the fix and is optimized to 0.0 -> 0.01 on update
Questions (please complete the following information):