How do I remove the hats of TF2 players?

I’ve Seen Screenshots with the tf2 Models without hats. I’m Wondering How It’s Done.

Doesn’t Anybody know?

ent_fire !picker bodygroups #.

ent_fire !picker setbodygroup #

OMG It Worked Thanks. Ive been trying to work it out for ages