Hello , i am working on a login panel but i cant make the gui to set visible on gui button is cliecked.No errors in debug
Here's the code
GUIEditor = {
checkbox = {},
staticimage = {},
label = {},
button = {},
memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.button[1] = guiCreateButton(0.45, 0.71, 0.10, 0.03, "Play", false)
GUIEditor.label[1] = guiCreateLabel(0.41, 0.68, 0.05, 0.03, "Save", false)
GUIEditor.checkbox[1] = guiCreateCheckBox(0.39, 0.68, 0.01, 0.02, "", false, false)
GUIEditor.memo[1] = guiCreateMemo(0.39, 0.64, 0.22, 0.03, "Password", false)
GUIEditor.memo[2] = guiCreateMemo(0.39, 0.60, 0.22, 0.03, "Username", false)
GUIEditor.staticimage[1] = guiCreateStaticImage(0.27, 0.40, 0.46, 0.15, ":guieditor/images/examples/KRONSLOGOGOOD.png", true)
GUIEditor.button[3] = guiCreateButton(0.2656, 0.5547, 0.10, 0.03, "Play", true)
guiSetAlpha ( GUIEditor.button[3], 1 )
end
)
local screenW, screenH = guiGetScreenSize()
addEventHandler("onClientGUIClick",root,function()
if source == GUIEditor.button[3] then
guiSetVisible(GUIEditor.button[1],true)
guiSetVisible(GUIEditor.label[1],true)
guiSetVisible(GUIEditor.checkbox[1],true)
guiSetVisible(GUIEditor.memo[1],true)
guiSetVisible(GUIEditor.memo[2],true)
end
end)