Yeh happens wtih me as well, Try it like this :
function open ()
vent = guiCreateWindow(485, 185, 314, 385, "WINDOW", false)
guiWindowSetSizable(vent, false)
guiSetVisible ( vent, false )
a = guiCreateButton(9, 31, 296, 58, "e", false, vent)
b = guiCreateButton(9, 259, 296, 58, "e", false, vent)
c = guiCreateButton(13, 94, 77, 30, "ele", false, vent)
d = guiCreateButton(222, 94, 77, 30, "ee", false, vent)
e = guiCreateButton(13, 323, 77, 30, "eble", false, vent)
f = guiCreateButton(222, 323, 77, 30, "eeble", false, vent)
addEventHandler( "onClientGUIClick", resourceRoot, function( )
if source == a then
aa( )
elseif source == b then
bb( )
elseif source == c then
cc( )
elseif source == d then
dd( )
end
end )
imagen = guiCreateStaticImage(13, 133, 292, 120, "carm.png", false, vent)
bindKey ( 'f4', 'down', windowopen )
end
addEventHandler ( 'onClientResourceStart', resourceRoot, open )
function aa ()
outputChatBox ("YOU PRESSED THE BUTTON", 0, 255, 0, true)
showCursor (true)
end
function bb ()
outputChatBox ("YOU PRESSED THE BUTTON !!", 255, 0, 0, true)
showCursor (true)
end
function cc ()
outputChatBox ("YOU PRESSED THE BUTTON", 0, 255, 0, true)
showCursor (true)
end
function dd ()
outputChatBox ("YOU PRESSED THE BUTTON.", 255, 0, 0, true)
showCursor (true)
end
function windowopen ( )
guiSetVisible ( vent, not guiGetVisible ( vent ) )
showCursor ( guiGetVisible ( vent ) )
end