Ich habe eine Gui also Reg- login fesnter erstellt
Lua
addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Edit = {} GUIEditor_Image = {}
GUIEditor_Window[1] = guiCreateWindow(296,222,718,358,"Herzlich Willkommen auf San Fierro Reallife",false) GUIEditor_Checkbox[1] = guiCreateCheckBox(67,44,524,28,"Ich bin neu bei MTA!",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[1],"clear-normal")guiSetProperty(GUIEditor_Checkbox[1],"Selected","Man") GUIEditor_Edit[1] = guiCreateEdit(164,252,398,89,"",false,GUIEditor_Window[1])guiSetProperty(GUIEditor_Edit[1],"Disabled","") GUIEditor_Checkbox[2] = guiCreateCheckBox(70,78,253,31,"Männlich",false,false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(235,35,259,173,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(590,278,110,47,"Einloggen",false,GUIEditor_Window[1])guiSetProperty(GUIEditor_Button[1],"ClippedByParent","close")guiSetProperty(GUIEditor_Button[1],"close","")guiSetProperty(GUIEditor_Button[1],"DistributeCapturedInputs","")guiSetProperty(GUIEditor_Button[1],"DestroyedByParent","Viel Fun")guiSetProperty(GUIEditor_Button[1],"closeall","Viel Fun")guiSetProperty(GUIEditor_Button[1],"close all","Viel Fun") end)
Aber wie geht das also kein mauszeiger kommt! und wie geht das wenn man auf Einloggen klickt das sich das Fenster schliesst?