Everyone in here but headcrab is obviously terrible at scripting.
//serverside
function gameConnection::openGUI(%this, %arg)
{
if(!%arg)
return;
commandToClient(%this, 'openGUI',%arg);
}
registerOutputEvent("gameConnection","openGUI","string 100 100",0);
//clientside -- this is REQUIRED for the event to work
function clientCmdOpenGUI(%arg)
{
if(!isObject(%arg))
return;
canvas.pushDialog(%arg);
}
That should work perfectly.