Jump to content

Using two different event


TheCapn

Recommended Posts

Posted

Hello guys,

I'm using a client side .lua file and I would like to trigger an event when the player disconnect. In fact, when the player disconnect I would like to save the data that are in the client side script file, and at the same time saving the server side data.

But I realized that the server-side was a priority for the server and so the client side datas are not saved.

Wich event could I use on client-side to handle this ?

Regards,

Posted

Why do you even want to save the data client sided?

for example: if you change the money client side it won't change serverside, unless youre triggering it and that would be useless if you save the money serverside.

Posted

I'm using setElementData and getElementData that I've synchronized.

Because I'm using a local timer and I would like to save the remaining time of the timer when the player quits.

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