Ok, so, I am trying to make a sale system. Its just a basic gui that displays the item name, image, and a buy or cancel button.
The only thing is, I cant get it to display data. ><
My npc in the level:
HTML Code:
this.join("shops");
//#CLIENTSIDE
this.shopname = "John's Shop";
this.itemname = "Tommy Gun";
The class:
HTML Code:
//#CLIENTSIDE
function onCreated(){
}
function onActionLeftMouse(){
new GuiWindowCtrl("shopwin") {
profile = GuiBlueWindowProfile;
x = 10;
y = 10;
destroyonhide=true;
width = 160;
height = 80;
text = ""
new GuiMLTextCtrl("shopitem") {
profile = GuiBlueMLTextProfile;
x = 10;
y = 20;
width = 160;
height = 1;
text = @this.itemname;
}
}
}
Now, when you click the item, a blank gui pops up, and it doesnt display the item name. =/