How do you add hats to a playermodel?

how do you hack models? id be grateful for a tutorial link or something

http://www.facepunch.com/showthread.php?t=534654&highlight=headhack

Thats the best (and only) tutorial around for it i’d say.

Edit: Just thought theres another way of doing it that doesn’t involve any hacking:

http://www.garrysmod.org/img/?t=dll&id=72932