Add either of these below the //#CLIENTSIDE.
for chat
PHP Code:
function onPlayerChats()
{
if ( player.chat == "/menu" )
{
triggerserver( "gui", name, "getMessage" );
}
}
and for a button
PHP Code:
function onKeyPressed( code, key )
{
if ( key == "w" )
{
triggerserver( "gui", name, "getMessage" );
}
}
Tell me if you need any help with this!