Hud disappearing?

So, what I’m trying to do is make it so when they change teams, they can’t pickup any weapons. Here’s what I have.

[LUA]
function GM:PlayerCanPickupWeapon( ply, Team )

if ply:Team() == TEAM_HOSTAGE or ply:Team() == TEAM_HOSTAGE1 then
	return false end

return true

end

[/LUA]

It works and all but the problem is I can’t see my Hud when I’m TEAM_HOSTAGE or TEAM_HOSTAGE1 any other team and I can see it. Any help would be appreciated.

I don’t know why that would happen, is there any other code?

Where is your hud lua code? Are you sure you aren’t excluding the hostage teams from the hud?

try removing return false.

results?

If he removes return false where is the point in the code?

Yeah, sorry I figured it out. It was something with my Hud code.
[LUA]
local client = LocalPlayer()
if !client:Alive() then return end
if(client:GetActiveWeapon() == NULL or client:GetActiveWeapon() == “Camera”) then return end

[/LUA]
I had that in my code and since the class doesn’t have a weapon it returns null and doesn’t print the Hud. I should have put my Hud code in the OP sorry about that.