[Plugin] Web UI framework plugin ()

clearing UI

What would be the best way to go about disabling the HUD component?

Edit: I have added a branch to check for a boolean value before the draw occurs. Is that where I should place it to disable HUD rendering?