From Valve Developer Community
Using the
cl_drawhud ConVar is very easy and is very useful for developers looking to take professional images of their work in-game. Disabling cl_drawhud will remove the health, armor, and ammo indicators from your screen so you only have the weapon remaining (which can also be removed).
Note:The HUD is only visible when cl_drawhud is set to 1.
See Also