HeresOtis Posted January 18, 2017 Share Posted January 18, 2017 How does one check if the game is paused (pause menu)? I tried using UI::IS_PAUSE_MENU_ACTIVE() but it doesn't seem to work. Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/ Share on other sites More sharing options...
Jitnaught Posted January 18, 2017 Share Posted January 18, 2017 Maybe you could try UI::GET_PAUSE_MENU_STATE. It returns an integer, and has at least 15 different returned states. Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1069355197 Share on other sites More sharing options...
unknown modder Posted January 18, 2017 Share Posted January 18, 2017 Thats probably not the issue, its more than likely that the script is being pauses while the pause menu is active. Try using GAMEPLAY::SET_THIS_SCRIPT_CAN_BE_PAUSED to enable the script to run while the game is paused jedijosh920 and Jitnaught 2 Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1069355709 Share on other sites More sharing options...
HeresOtis Posted January 19, 2017 Author Share Posted January 19, 2017 (edited) For some reason, still not working with using all provided functions you gave. Does GAMEPLAY::SET_THIS_SCRIPT_CAN_BE_PAUSED() need to be in a loop? Edited January 19, 2017 by HeresOtis Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1069357481 Share on other sites More sharing options...
unknown modder Posted January 19, 2017 Share Posted January 19, 2017 you only need to call it once and pass 0 as the argument. that way the script will still run while the game is paused. then you can use is_pause_menu_active to detect if the game is paused jedijosh920 1 Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1069357700 Share on other sites More sharing options...
HeresOtis Posted January 23, 2017 Author Share Posted January 23, 2017 Have you or someone else successfully used these functions to allow a script to run when game is paused? I'm using them correctly but just want to verify if these are actually working. Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1069363831 Share on other sites More sharing options...
HeresOtis Posted February 3, 2017 Author Share Posted February 3, 2017 Can anyone verify if UI::IS_PAUSE_MENU_ACTIVE() works? I tried different ways using this and other functions, but to no avail. Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1069384325 Share on other sites More sharing options...
Jupiter_Hortenzievich Posted January 16, 2020 Share Posted January 16, 2020 (edited) Looks like this topic is dead. Any help would be appreciated, we still need to check if game is paused or not. Anyway, it looks like if the scripts were paused while the game is paused: SET_THIS_SCRIPT_CAN_BE_PAUSED(0) does not seem to do anything meaningful. IS_PAUSE_MENU_ACTIVE() didn't help either. Maybe, there are other methods, like memory hacking, or other natives to check, but if someone knows the ultimate solution, please don't keep it secret! Edited January 16, 2020 by Jupiter_Hortenzievich Adding some clarification, some more info. Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1071050592 Share on other sites More sharing options...
Tanjitsu Posted January 18, 2020 Share Posted January 18, 2020 I also had no luck using SET_THIS_SCRIPT_CAN_BE_PAUSED. One way to do it would simply be to detect the key press / button press. This is not full proof as they could be rebound but its simple and will work. Link to comment https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1071053348 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