guys u know im nub in scripting i want to know how to like , i started the script and when i press f2 it shows up and if i press f2 again , it hides , i want to knw please . here is my code , what to add here?
GUIEditor = {
scrollpane = {},
window = {},
label = {},
memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(200, 104, 394, 413, "Zombie Invasion Rules!", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF08DD03")
GUIEditor.label[1] = guiCreateLabel(245, 198, 23, 20, "", false)
GUIEditor.memo[1] = guiCreateMemo(232, 136, 346, 360, " The Zombie Invasion Rules\nRules:\n1.Seals,Civillians,Army,Cant Kill each other!\n\n2.Be Respectful\n\n3.Do Not Insult!\n\n4.Respect Staff / Players\n\n5.Do Not Spam!\n\n6.Do Not Say the *Noob* Word\n\n7.No Capslock!\n\n8.Do Not ask for money\n\n9.Do Not ask for Warp / Staff\n\n10.Do Not Advertise Other Servers / Websites.\n\nFor more Information Please go to:\nhttp://mtazombieinvasion.enjin.com/home\n\nAnd please don't forget to register.", false)
GUIEditor.scrollpane[1] = guiCreateScrollPane(573, 206, 15, 223, false)
end
)