You could put them as ATTRs in the gani (body attr1, head attr2, hat attr3, scarf attr4, ...) and than script your set#
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == "setbody") player.attr[1] = player.chat.substring(7);
else if (player.chat == "sethead") player.attr[2] = player.chat.substring(7);
else if (player.chat == "sethat") player.attr[3] = player.chat.substring(6);
else if (player.chat == "setscarf") player.attr[4] = player.chat.substring(8);
}
keep in mind that is very basic. You would do better doing serverside checks if the file actually exists and if it's the correct body part. But you should get what I want to say