This command will prevent the ESC key from closing the pause menu (game UI) when pressed. Use gameui_allowescape to re-enable.
|Client or Server Command?||Both|
Find below working examples of this command (copy and paste into console).
This is the only way you can run this command. This will prevent ESC from closing the pause menu.