Classes have loading issues on the client-side, just join them on the serverside and use an attr variable. I.e:
PHP Code:
function onCreated() {
this.windowtype="1b";
this.join("window");
}
PHP Code:
function onCreated() {
this.attr[1] = this.windowtype;
}
//#CLIENTSIDE
function onCreated() {
this.setShape(1, 32, 32);
showimg(200, "sorna_window"@this.attr[1]@"_glass.png", this.x, this.y);
changeimgcolors(200, 1, 1, 1, 0.7);
changeimgvis(200, 0);
showimg(201, "sorna_window"@this.attr[1]@"_frame.png", this.x, this.y);
changeimgvis(201, 1);
}