Single-Player HUD Disappeared?

I have absolutely no health meter or ammo meter in single-player mode ever since I started working on a HUD script on my multi-player SRCDS server. The usual cl_drawhud 1 does not make it return. I can see the weapon-switch labels fine, and I can see crosshairs, but no meters at bottom left and bottom right.

function hidehud(name)
    for k, v in pairs{"CHudHealth", "CHudBattery", "CHudAmmo", "CHudSecondaryAmmo", "CHudCrosshair"} do
        if name == v then return false end
hook.Add("HUDShouldDraw", "hidehud", hidehud)

That does not permanently hook into the game despite having completely shut down my PC and restarted it, does it?

EDIT: I just went to a multi-player server in the server list, and in single-player mode the clock that server put in the upper-left corner of my screen still remains running. Is this a corruption in my game, or is that how things drawn on the HUD with HUDPaint are supposed to work?