You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run code just before the game exits, you can subscribe to the OnQuit event.
// This is an async function because you way want to await certain processes before the game existsGlobal.Services.Get<Global>().OnQuit+=async()=>{// Execute your code hereawaitTask.FromResult(1);}