DjThaKiller Posted August 21, 2011 Posted August 21, 2011 Hey everybody, i need you. Whats wrong with my script ??? PanelVisible = false function togglePanel ( player ) if PanelVisible == false then showGUIEditor_Window[1] = true GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Window[1] = guiCreateWindow(705,-1,322,533,"Sunny Userpanel by DjThaKiller",false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Memo[1] = guiCreateMemo(26,57,87,34,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(26,94,87,28,"Set",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(163,28,151,89,"Standardfarben/Basiccolors:\n0 = Black/Schwarz\n1 = White/Weiss\n2 = Blue/Blau\n3 = Red/Rot\n4 = Gray/Grau",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(9,24,140,30,"Farbe aendern\nChange color",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(124,142,75,46,"Shop",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[3],"sa-header") GUIEditor_Label[4] = guiCreateLabel(17,201,90,22,"Heuballen/Hay",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(23,223,61,21,"Buy",false,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(126,201,91,18,"Bombe/Bomb",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(135,223,61,21,"Buy Bomb",false,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(249,202,38,18,"Repair",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(236,223,61,21,"Buy Fix",false,GUIEditor_Window[1]) GUIEditor_Label[7] = guiCreateLabel(30,245,49,19,"15000 $",false,GUIEditor_Window[1]) GUIEditor_Label[8] = guiCreateLabel(141,245,49,19,"15000 $",false,GUIEditor_Window[1]) GUIEditor_Label[9] = guiCreateLabel(243,245,49,19,"15000 $",false,GUIEditor_Window[1]) GUIEditor_Label[10] = guiCreateLabel(15,321,84,19,"Rampe/Ramp",false,GUIEditor_Window[1]) GUIEditor_Label[11] = guiCreateLabel(74,267,186,45,"Special Shop",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[11],"sa-header") GUIEditor_Button[5] = guiCreateButton(22,343,61,21,"Buy Ramp",false,GUIEditor_Window[1]) GUIEditor_Label[12] = guiCreateLabel(27,365,54,15,"150000 $",false,GUIEditor_Window[1]) GUIEditor_Label[13] = guiCreateLabel(194,309,88,32,"Nebelmaschiene\nFog Machine",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(203,340,61,21,"Buy Fog",false,GUIEditor_Window[1]) GUIEditor_Label[14] = guiCreateLabel(208,362,54,15,"150000 $",false,GUIEditor_Window[1]) GUIEditor_Label[15] = guiCreateLabel(64,392,191,42,"Vehicle change",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[15],"sa-header") GUIEditor_Radio[1] = guiCreateRadioButton(11,450,106,22,"Infernus",false,GUIEditor_Window[1]) guiRadioButtonSetSelected(GUIEditor_Radio[1],true) GUIEditor_Radio[2] = guiCreateRadioButton(11,498,106,21,"RC Bandit",false,GUIEditor_Window[1]) GUIEditor_Radio[3] = guiCreateRadioButton(11,474,106,22,"BMX",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(101,454,93,25,"Change",false,GUIEditor_Window[1]) GUIEditor_Label[16] = guiCreateLabel(119,488,61,17,"1000000 $",false,GUIEditor_Window[1]) GUIEditor_Radio[4] = guiCreateRadioButton(207,500,106,16,"Cheetah",false,GUIEditor_Window[1]) GUIEditor_Radio[5] = guiCreateRadioButton(207,476,104,16,"Dodo",false,GUIEditor_Window[1]) GUIEditor_Radio[6] = guiCreateRadioButton(207,452,102,16,"Turismo",false,GUIEditor_Window[1]) showCursor = true PanelVisible = true else if PanelVisible == true then showGUIEditor_Window[1] = false showCursor = false PanelVisible = false end end end bindKey ( player, "u", "down", togglePanel ) My meta.xml: "DjThaKiller" version="Beta 1.0" type="script" /> It will be very nice if you can help me DjThaKiller
SHC//Sniper Posted August 21, 2011 Posted August 21, 2011 Uhm, the script file with the GUI must be clientsided! New and active mtasa.com username: -ffs-Sniper!
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