GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Window[1] = guiCreateWindow(195,158,415,320,"food panel",false)
GUIEditor_Button[1] = guiCreateButton(149,125,112,64,"+20",false,GUIEditor_Window[1])
guiSetVisible (GUIEditor_Window[1], false)
function OpenWin()
if guiGetVisible ( GUIEditor_Window[1]) then
guiSetVisible ( GUIEditor_Window[1], false )
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible ( GUIEditor_Window[1], true )
showCursor(true)
guiSetInputEnabled(true)
end
end
bindKey("F3", "down", OpenWin)
addEventHandler ("onClientGUIClick", getRootElement(),
function ()
if source == GUIEditor_Window[1] then
function setCash(thePlayer, amount)
setPlayerMoney(thePlayer,(100))
end
outputChatBox("+100")
end
end
)