When spectating a player and spawning back in the spectator HUD still shows, the following code fixes this. The old fix was to go into 3rd Person and back to 1st Person Mode.