diff --git a/apps/game/client/cl_main.ts b/apps/game/client/cl_main.ts index 6d9bdf218..34340c6f6 100644 --- a/apps/game/client/cl_main.ts +++ b/apps/game/client/cl_main.ts @@ -173,10 +173,12 @@ RegisterNuiCB<{ keepGameFocus: boolean }>( }, ); + // If you want to remove controls from a external application this is the way to do it. -on(PhoneEvents.SET_GAME_FOCUS, (keepGameFocus: boolean) => { +// chip - commenting this out because it crashed the phone for some reason, even though it's not used anywhere??? like...we dont emit it +/* on(PhoneEvents.SET_GAME_FOCUS, (keepGameFocus: boolean) => { if (global.isPhoneOpen) SetNuiFocusKeepInput(keepGameFocus); -}); +}); */ /* * * * * * * * * * * * * *