JackRabbott Posted April 6, 2018 Share Posted April 6, 2018 I want to save accounts on a server close or crash, what is the event for this? Link to comment Share on other sites More sharing options...
gatno Posted April 9, 2018 Share Posted April 9, 2018 C# or NodeJs? Link to comment Share on other sites More sharing options...
JackRabbott Posted April 14, 2018 Author Share Posted April 14, 2018 NodeJS Link to comment Share on other sites More sharing options...
Joshua Posted April 14, 2018 Share Posted April 14, 2018 https://wiki.gtanet.work/index.php?title=OnServerResourceStop This may be useful Link to comment Share on other sites More sharing options...
micaww Posted April 18, 2018 Share 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. Link to comment Share on other sites More sharing options...
ragempdev Posted April 19, 2018 Share 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. Link to comment Share on other sites More sharing options...
linnik Posted July 11, 2018 Share Posted July 11, 2018 OnServerResourceStop Doesn't work for Node.Js. Link to comment Share on other sites More sharing options...
MrPancakers Posted July 11, 2018 Share 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 Link to comment Share on other sites More sharing options...
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