-- Server Side
bindKey("F2","up",
function()
triggerClientEvent(source,"open",source)
end
)
-- Client Side
addEvent("open",true)
addEventHandler("open",root,
function()
if guiGetVisible( theWindow ) == false then
guiSetVisible( theWindow , true )
showCursor( true )
else
guiSetVisible( theWindow , false )
showCursor( false )
end
end
)