How can I hide the HUD when a certain value is reached?

How exactly does this work? I just started using the engine xD