Jump to content

Sync getTickCount client-side


Feche1320

Recommended Posts

Feche is right about the fact that getTickCount is not the same client and server side due to the way it works. The tick count is actually the uptime or cputime (don't know exactly) of the machine the script is running at in miliseconds.

So there is no way to sync those two functions directly. The only way to "sync" it would be starting the tick count server and client side at the same time and save that time difference. Although it won't be 100% exact since triggerEvents would delay the syncing progress.

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...