TheCapn Posted March 10, 2014 Posted March 10, 2014 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,
TheCapn Posted March 10, 2014 Author Posted March 10, 2014 That's actually what I'm using on client side On server side, I use : onPlayerQuit
Karuzo Posted March 11, 2014 Posted March 11, 2014 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.
TheCapn Posted March 11, 2014 Author Posted March 11, 2014 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now