Jump to content

Timers in client and server [SYNC]


Recommended Posts

Hello, so I am working on a script and I'm facing this problem.

- I use a timer in client-side supposed to end in 200 seconds, and it really ends in more than 200 seconds, actually! I guess it's because of client-side PC? How can I sync this with a:

-Serverside timer I also use, for the same time?

I thought about using setElementData and then getting the time on the client-side or something like that, but not very efficient...

Link to comment
What exactly do you need to sync the timers for? There should be a better, more efficient way than trying to sync a client and server timer. If you really need to, you could just use either triggerClientEvent/triggerServerEvent every second to sync.

Because the client timer goes wrong (reaches 200 seconds in 215 for example) I need a timer too in server to check it it is correct... So I wanted to fix that clientside?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...