Ya, that won't work because there's no client.
function exampleImage::onFire(%image, %player, %slot) {
if(%player.getScale() $= "2 2 2")
%player.setscale("1 1 1");
else
%player.setscale("2 2 2");
}
Okay, not sure about which is the player, but first should always be the object calling, so it should be the image.