Well i have a problem with my GUI, let me get into details, i'll try to explain this as best as i can because i kinda a newb at scripting, anyway.
function createStatsGUI()
mainWindow = guiCreateWindow(463, 151, 367, 501, "Player Statistics", false)
playerGrid = guiCreateGridList(9, 26, 177, 465, false, mainWindow)
closeBtn = guiCreateButton(244, 444, 113, 47, "Close", false, mainWindow)
end
addEventHandler("onClientResourceStart", resourceRoot, createStatsGUI)
function toggleStatsGUI()
guiSetVisible (mainWindow, not guiGetVisible (mainWindow))
showCursor (not isCursorShowing())
end
bindKey("F2", "down", toggleStatsGUI)
From the code above i do not understand what is wrong.
Let me say, When the resource starts, my GUI appears, it's bound to F2, when you press F2, the GUI disappears and my Cursor appears, well i want to make it when the resource starts, it doesn't show the GUI, it should show it when i press F2, and my cursor appear when i press F2 with the GUI, any help would be nice, and thank you.