justalemon / SimpleSync

Resource for FiveM that allows you to sync Time, Weather and Artificial Lights (Blackout) between players
MIT License
15 stars 9 forks source link

how to use exports? #75

Closed xrtw closed 3 years ago

xrtw commented 3 years ago

hello, how to use those exports in client side? any snippet? thanks!! also, dont leave this script, its amazing but needs a little of optimization

justalemon commented 3 years ago

Hi, exports can't be used on the client side because they are server only. Allowing the client's to use the exports would allow them to change everyone's time and weather.

For optimization, there is nothing that I can do sadly due to the way that CLR works on FiveM.