sacr1ficez Posted April 20, 2019 Posted April 20, 2019 (edited) Hey. I need to send timer details from client-side to server-side. (Need to save it, and then load if player join again.) What should i do? 1. There's a way to send triggerServerEvent within onClientPlayerQuit? I've have tested it, but seems like this wouldn't work. 2. Sync timer in client and server side? Probably not best way so far, but i am not sure. 3. Or there's other, better way? Edited April 20, 2019 by majqq
Investor Posted April 21, 2019 Posted April 21, 2019 onClientPlayerQuit isn't called for the localPlayer. You should use onClientResourceStop (that will call when the resource is either stopped, or the client disconnects and the resource stops on his end). 1
sacr1ficez Posted April 21, 2019 Author Posted April 21, 2019 3 hours ago, Investor said: onClientPlayerQuit isn't called for the localPlayer. You should use onClientResourceStop (that will call when the resource is either stopped, or the client disconnects and the resource stops on his end). I'll try it out.
nxFairlywell Posted April 21, 2019 Posted April 21, 2019 How you should save it ? i think you need to save it by the player serial because you could get the details by player serial if he was joined the server. Or ! you may use an account data. How you want to save it?
sacr1ficez Posted April 21, 2019 Author Posted April 21, 2019 2 hours ago, NX_CI said: How you should save it ? i think you need to save it by the player serial because you could get the details by player serial if he was joined the server. Or ! you may use an account data. How you want to save it? SQLite
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