TheCapn Posted March 10, 2014 Share 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, Link to comment
Castillo Posted March 10, 2014 Share Posted March 10, 2014 Have you tried using "onClientResourceStop"? Link to comment
TheCapn Posted March 10, 2014 Author Share Posted March 10, 2014 That's actually what I'm using on client side On server side, I use : onPlayerQuit Link to comment
TheCapn Posted March 11, 2014 Author Share Posted March 11, 2014 So nobody have an idea ? Link to comment
Karuzo Posted March 11, 2014 Share 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. Link to comment
TheCapn Posted March 11, 2014 Author Share 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. Link to comment
Karuzo Posted March 11, 2014 Share Posted March 11, 2014 Well you should say that you use element datas. Link to comment
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