Jump to content

[c++] Check if game paused


Recommended Posts

unknown modder

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

  • Like 2
Link to comment
https://gtaforums.com/topic/879832-c-check-if-game-paused/#findComment-1069355709
Share on other sites

  • 2 weeks later...
  • 2 years later...
Jupiter_Hortenzievich

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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.