MZ Pause Game If Offline

I'm looking for a plugin or script call that could pause the game whenever internet access is lost and resume when connection is back on. I had one when I used MV but I have 0 luck finding a similar one for MZ.

Any and all answers are appreciated!

Thanks in advance.
What do you mean by pause the game? Like open up the pause menu or like pause all action in the game?

Original thread: https://forums.rpgmakerweb.com/threads/pause-game-if-offline.143570/