JackRabbott Posted April 6, 2018 Posted April 6, 2018 I want to save accounts on a server close or crash, what is the event for this?
Joshua Posted April 14, 2018 Posted April 14, 2018 https://wiki.gtanet.work/index.php?title=OnServerResourceStop This may be useful
micaww Posted April 18, 2018 Posted April 18, 2018 You can't hook on server crash because the server already crashed.. which means your code is no longer running. Use an external memory cache if you don't want to lose important data in memory. Check out redis or memcached.
ragempdev Posted April 19, 2018 Posted April 19, 2018 13 hours ago, micaww said: You can't hook on server crash because the server already crashed.. which means your code is no longer running. Use an external memory cache if you don't want to lose important data in memory. Check out redis or memcached. The server is stable and wouldn't crash itself. As for termination caused by errors in scripts, there are events both in NodeJS and C# API.
MrPancakers Posted July 11, 2018 Posted July 11, 2018 4 hours ago, linnik said: OnServerResourceStop Doesn't work for Node.Js. Use Node.JS process object https://nodejs.org/api/process.html 1
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