jea i already fixed it. like i said the npc was playing a gani which only showed the hat and maybe that was the problem idk. anyway i made icons of the hats and placed them, removed gani from script and it worked fine with the
PHP Code:
say2("say \"/buy hat1\" for this hat");