Thanks for the code!
I'll do it but i insist command as it's only pizza info panel and i can't use keyboard keys for all jobs .
I added it to my resource like this ->
local Window = Window Name
local Key = "F2"
guiSetVisible(Window,false)
bindKey(Key,"Down",function()
if ( guiGetVisible(Window) == true ) then
guiSetVisible(Window,false)
showCursor(false)
else
guiSetVisible(Window,true)
showCursor(true)
end
end)
But i get this error on console
[2014-06-07 00:04:25] Starting pizza
[2014-06-07 00:04:25] SCRIPT ERROR: pizza\client.lua:31: '=' expected near 'local'
[2014-06-07 00:04:25] ERROR: Loading script failed: pizza\client.lua:31: '=' expected near 'local'
Please Help