Eli Pause Game - Works like the old retro games!

Hi there!

You can use:
Eli.PauseGame.setState(false)
If you replace false with true, it will pause.
i try this, but its not working
JavaScript:
function test() {
    console.log("pause")
    Eli.PauseGame.pauseGame()
var delayInMilliseconds = 2000;


setTimeout(function() {
    Eli.PauseGame.setState(false)
  console.log("resume")
}, delayInMilliseconds);
}
i try this, but its not working
JavaScript:
function test() {
    console.log("pause")
    Eli.PauseGame.pauseGame()
var delayInMilliseconds = 2000;


setTimeout(function() {
    Eli.PauseGame.setState(false)
  console.log("resume")
}, delayInMilliseconds);
}
This will work:
- Replace the Eli.PauseGame.setState(false) with SceneManager._scene.updateEnd()

JavaScript:
function test() {
    console.log("pause")
    Eli.PauseGame.pauseGame()
    var delayInMilliseconds = 2000;

    setTimeout(function() {
        SceneManager._scene.updateEnd()
        console.log("resume")
    },delayInMilliseconds);
}
This will work:
- Replace the Eli.PauseGame.setState(false) with SceneManager._scene.updateEnd()

JavaScript:
function test() {
    console.log("pause")
    Eli.PauseGame.pauseGame()
    var delayInMilliseconds = 2000;

    setTimeout(function() {
        SceneManager._scene.updateEnd()
        console.log("resume")
    },delayInMilliseconds);
}
thanks it pretty works!
I have a particular cut scene where I don't want the screen icon to show (the player could still use the button option). Is it possible to temporarily hide it?

Thank you.

EDIT
Forget this, I have just noticed that during an autorun event it doesn't show, so there is no problem.
Sorry to have troubled you.
This plugin is awesome, thank you creating it.

Original thread: https://forums.rpgmakerweb.com/threads/eli-pause-game-works-like-the-old-retro-games.127915/