Vennox Posted October 29, 2019 Posted October 29, 2019 When the player disconnects (either client crashes or kick from the server), the server crashes showing this: Error: async hook stack has become corrupted (actual: 141, expected: 18) followed by this: I thought it was because of this event: mp.events.add("playerQuit", (player) => { if(player.loggedInAs != ""){ gm.auth.saveAccount(player); } }); But i removed it and the problem persists. Note: i started my gamemode from this one - Any help is appreciated, thank you
ragempdev Posted October 29, 2019 Posted October 29, 2019 You probably have an interval/timeout or an async callback that uses an expired player object causing this crash. Use mp.player.exists(playerObj).
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