Hi all, I'm trying to make a simple NPC when player fires it, it checks if the player has tht hat on, if he does it sets the hat to hat.png, if not it sets the players hat to the hat filename, someone please help me, this is what ive got so far
PHP Code:
//#CLIENTSIDE
function onWeaponFired()
{
{
if (player.attr[1] = "ds-gasmask.png")
player.attr[1] = "hat.png";
}
else
{
player.attr[1] = "ds-gasmask.png";
}
}
Thanks!