Put the contents of folder of which hat you want to replace into steam/steamapps/username/team fortress 2/tf

Made by Kekas (KelThuzadMadness)