addEvent('startdraw',true)
addEvent('stopdraw',true)
local screenx,screeny = guiGetScreenSize()
GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(222, 217, 378, 192, "get bike", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFA1818")
GUIEditor.button[1] = guiCreateButton(57, 88, 109, 57, "GET NRG", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(224, 93, 126, 52, "GET FCR", false, GUIEditor.window[1])
GUIEditor.label[1] = guiCreateLabel(87, 4, 206, 15, "", false, GUIEditor.window[1])
end
)
bindKey ( "F2", "down",
function ( )
local state = ( not guiGetVisible ( GUIEditor.window[1] ) )
guiSetVisible ( GUIEditor.window[1], state )
showCursor ( state )
end
)