The main overlay object has a variety of events you can listen to on it
overlay.on("gameLaunch", ({ game, reject }) => { // ... });
reject()
overlay.on("gameLaunch", ({ game, reject }) => { if (game === "valorant") { reject(); return; } // ... });
overlay.on("gameReady", ({ game }) => { if (game === "siege") { // ... } });
overlay.on("gameClose", ({ game }) => { if (game === "siege") { // ... } });
Was this page helpful?