QuoteWait() makes engine to run game updates, and "repeatedly_execute_always" function (I said "repeatedly_execute", but now remember it's not getting called during Wait).
My thinking currently is that something happens during these updates, or in rep-exec-always that causes the gui to hide.
I tried moving it to other rooms to see if it was something in the configuration of this particular one, but no, the same thing always happens.
I didn't put anything in any place to repeatedly_execute_always or repeatedly_execute, the only commands like that in the code are the ones in the global script, where I haven't touched anything yet.
The weirdest thing that I put so far (that I had not used before) is the command "while (IsGamePaused()) UnPauseGame();" in the functions of some Gui buttons, could it be because of that?
Edit: nope, I tried to override those commands... but it wasn't that