Turbe$Z Posted February 4, 2017 Share Posted February 4, 2017 function createPasswordWindow() windowChangepw = guiCreateWindow(0.3859,0.349,0.2130,0.1628,"Jelszó váltás",true) guiSetSize(windowChangepw, 165, 21) guiSetAlpha(windowChangepw,0.80000001192093) editOldpw = guiCreateEdit(110,29,180,21,"",false,windowChangepw) guiSetAlpha(editOldpw,1) guiEditSetMasked(editOldpw,true) labelOldpw = guiCreateLabel(10,29,90,21,"Régi:",false,windowChangepw) guiSetAlpha(labelOldpw,1) guiLabelSetColor(labelOldpw,255,255,255) guiLabelSetVerticalAlign(labelOldpw,"center") guiLabelSetHorizontalAlign(labelOldpw,"left",false) editNewpw = guiCreateEdit(110,60,180,21,"",false,windowChangepw) guiSetAlpha(editNewpw,1) guiEditSetMasked(editNewpw,true) guiEditSetMaxLength(editNewpw,50) labelNewpw = guiCreateLabel(10,60,90,21,"Új:",false,windowChangepw) guiSetAlpha(labelNewpw,1) guiLabelSetColor(labelNewpw,255,255,255) guiLabelSetVerticalAlign(labelNewpw,"center") guiLabelSetHorizontalAlign(labelNewpw,"left",false) buttonChangepw = guiCreateButton(10,91,280,23,"Változtatás",false,windowChangepw) guiSetAlpha(buttonChangepw,1) buttonClosepw = guiCreateButton(10,115,90,23,"Bezár",false,windowChangepw) guiSetVisible(windowChangepw, false) addEventHandler("onClientGUIClick", buttonChangepw, clientSubmitChangepw, false) addEventHandler("onClientGUIClick", buttonClosepw, false) end --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- function turbeszbezar() guiSetVisible(windowChangepw, false) showCursor(false) end addEventHandler("onClientGUIClick", buttonClosepw, false) --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- What wrong? Why not working? Link to comment
^iiEcoo'x_) Posted February 4, 2017 Share Posted February 4, 2017 (edited) addEventHandler("onClientGUIClick",root, function () if source == Button then guiSetVisible ( Windows , false ) end end ) ذ GUIEditor = { edit = {}, button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() windowChangepw = guiCreateWindow(0.3859,0.349,0.2130,0.1628,"Jelszó váltás",true) guiSetSize(windowChangepw, 165, 21) guiSetAlpha(windowChangepw,0.80000001192093) editOldpw = guiCreateEdit(110,29,180,21,"",false,windowChangepw) guiSetAlpha(editOldpw,1) guiEditSetMasked(editOldpw,true) labelOldpw = guiCreateLabel(10,29,90,21,"Régi:",false,windowChangepw) guiSetAlpha(labelOldpw,1) guiLabelSetColor(labelOldpw,255,255,255) guiLabelSetVerticalAlign(labelOldpw,"center") guiLabelSetHorizontalAlign(labelOldpw,"left",false) editNewpw = guiCreateEdit(110,60,180,21,"",false,windowChangepw) guiSetAlpha(editNewpw,1) guiEditSetMasked(editNewpw,true) guiEditSetMaxLength(editNewpw,50) labelNewpw = guiCreateLabel(10,60,90,21,"Új:",false,windowChangepw) guiSetAlpha(labelNewpw,1) guiLabelSetColor(labelNewpw,255,255,255) guiLabelSetVerticalAlign(labelNewpw,"center") guiLabelSetHorizontalAlign(labelNewpw,"left",false) buttonChangepw = guiCreateButton(10,91,280,23,"Változtatás",false,windowChangepw) guiSetAlpha(buttonChangepw,1) buttonClosepw = guiCreateButton(10,115,90,23,"Bezár",false,windowChangepw) guiSetVisible(windowChangepw, false) end ) --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- addEventHandler("onClientGUIClick",root, function () if source == Button1 then guiSetVisible ( Windows , true ) end end ) --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- addEventHandler("onClientGUIClick",root, function () if source == Button2 then guiSetVisible ( Windows , false ) end end ) Edited February 4, 2017 by #_iMr.[E]coo 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now