hi i 've created my first menu with Guieditor
and i've scripted it but after i want to test it it didn't work
and i found this Error: as you can see it on the image
and this is the script
GUIEditor = {
button = {},
window = {},
edit = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(519, 260, 344, 304, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.edit[1] = guiCreateEdit((344 - 199) / 2, (304 - 20) / 2, 199, 20, "", false, GUIEditor.window[1])
GUIEditor.button[1] = guiCreateButton(280, 256, 55, 26, "‗הב", false, GUIEditor.window[1])
GUIEditor.edit[2] = guiCreateEdit(507, 146, 0, 110, "", false, GUIEditor.window[1])
GUIEditor.edit[3] = guiCreateEdit(17, 196, 245, 86, "", false, GUIEditor.window[1])
end
)
local key = "F3"
bindkey(key, "down",
function()
guiSetVisible(GUIEditor.window[1]))
showCursor(guiGetVisible(GUIEditor.window[1]))
end
)
addEventHandler("onClienGUIClick",root,
if (source == GUIEditor.button[1])
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
end
what do i do to fix this??