I just haven't been able to get it to work. Am I doing something wrong?
I put this into the npc
PHP Code:
function onActionRightMouse(){
triggerClient("weapon", "<guishop>", "openshop");
}
than I use this for the weapon script, named guishop
PHP Code:
//#CLIENTSIDE
function onActionClientside(openshop){
new GuiWindowCtrl("MyGUI_Window1") {
profile = GuiBlueWindowProfile;
clientrelative = true;
clientextent = "320,240";
canmove = true;
canresize = true;
closequery = false;
destroyonhide = false;
text = "Window 1";
x = 849;
y = 167;
}
}