criteria
Defines an expression that will determine when your UI can be opened.
The start of your expression should always be the variable you defined. In our example: test01_module.
Then you should usually only allow the UI to open while your character is in play.
This prevents the UI from showing while on the loading screen or cinematics, etc.
This is achieved by adding the section:
Code:
&& (guimode & GUIMODEFLAGS_INPLAY)