client
function PushWeaponDealerGUI(%Gui)
{
%Gui = canvas.pushDialog(WeaponDealerGUI);
}
server
function ServerCmdOpenStore(%Client)
{
OpenStore(%Client);
}
function OpenStore(%client)
{
%Client.money = getRandom(20,100);
commandToClient(%client,'WD_UpdateMoney', %client.money);
commandToClient(%client,'PushWeaponDealerGUI');
}
typing PushWeaponDealerGUI(); in the console works, why isn't the server command?