Author Topic: Changing Hat Through Console  (Read 854 times)

Is there a way to change your hat directly through the console?
If there is, I don't know the command, but all I know is that after
you enter the command (if it exists), you say clientcmdupdateprefs();
Anyone know the code?

findclientbyname(nat3).hidenode("YOURCURRENTTYPEOFHAT");
then
findclientbyname(nat3).unhidenode("VISOR");

findclientbyname(nat3).player.hidenode("YOURCURRENTTYPEOFHAT");
then
findclientbyname(nat3).player.unhidenode("VISOR");
fixed

findclientbyname(nat3).hidenode("YOURCURRENTTYPEOFHAT");
then
findclientbyname(nat3).unhidenode("VISOR");
I am talking about the client way.
I believe this is possible because you can change colors with the rainbow shirt.


Code: [Select]
$pref::Avatar::Hat = "7";
clientcmdupdateprefs();
Would change your hat to the knithat
Replace 7 with the id of the hat you want (figure them out by trying numbers between 0 and 8)

Code: [Select]
$pref::Avatar::Hat = "7";
clientcmdupdateprefs();
Would change your hat to the knithat
Replace 7 with the id of the hat you want (figure them out by trying numbers between 0 and 8)
Ah, thanks.