Like the name of the switch entails on line 30 of the script I posted,
the ONOFF_SWITCH must be ON if you want the HUD to be visible,
and OFF if you want the HUD to not be visible, ie: for cutscenes and whatever else you want.
Incase you have issues with this, this can be accomplished by setting the default switch (I labeled it 10) to ON/OFF with the event command on page 1 of event creation.
If you have further questions as to how this edit works, please address them to ForeverZer0.
He is a genius, you know.