manups4e / ScaleformUI

ScaleformUI is a GTA menu styled API made with custom Scaleforms to be lighter, faster and visually better
Other
139 stars 49 forks source link

Fix GlobalGameTimer in Lua #212

Closed therkysmart closed 3 months ago

therkysmart commented 3 months ago

The fix is to start GlobalGameTimer with network time instead of game time.

Currently, it starts as GetGameTimer() and later gets updated to GetNetworkTime() every 100ms.

This causes problems in the MultiplayerChat component (in the Update function), as it checks if the component started more than 10000ms ago to close it automatically. However, due to the difference between these two times, it closes instantly.

manups4e commented 3 months ago

thanks! i'll merge it asap