local pagestate = 1GUIEditor = { button = {}, window = {}, progressbar = {},gridlist = {}, label = {}}addEventHandler(\"onClientResourceStart\", resourceRoot, GUIEditor.window[1] = guiCreateWindow(171, 65, 1568, 913, \"\", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(9, 20, 284, 29, \"Járművek\", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(539, 19, 503, 30, \"Információk\", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(1286, 19, 272, 29, \"Ingatlanok\", false, GUIEditor.window[1]) GUIEditor.progressbar[1] = guiCreateProgressBar(66, 385, 194, 16, false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(32, 387, 40, 14, \"Élet\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 134, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], \"center\", false) GUIEditor.progressbar[2] = guiCreateProgressBar(66, 411, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(26, 412, 40, 14, \"Éhség :\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 108, 68, 25) guiLabelSetVerticalAlign(GUIEditor.label[2], \"center\") GUIEditor.button[4] = guiCreateButton(293, 23, 229, 26, \"Frakció\", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(1057, 22, 229, 26, \"Beállitások\", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(39, 360, 221, 15, \"Neved:\", false, GUIEditor.window[1]) GUIEditor.progressbar[3] = guiCreateProgressBar(66, 436, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(6, 437, 60, 14, \"Szomjúság\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 23, 100, 131) guiLabelSetVerticalAlign(GUIEditor.label[4], \"center\") endaddEventHandler (\"onClientClick\", GUIEditor.button[1], pagestatechanger1 )addEventHandler (\"onClientClick\", GUIEditor.button[2], pagestatechanger2 )addEventHandler (\"onClientClick\", GUIEditor.button[3], pagestatechanger3 )addEventHandler (\"onClientClick\", GUIEditor.button[4], pagestatechanger4 )addEventHandler (\"onClientClick\", GUIEditor.button[5], pagestatechanger5 )function pagestatechanger1 ()pagestate = 1endfunction pagestatechanger2 ()pagestate = 2endfunction pagestatechanger3 ()pagestate = 3endfunction pagestatechanger4 ()pagestate = 4endfunction pagestatechanger5 ()pagestate = 5endfunction pagechanger ()if pagestate == 1 then -- inf.GUIEditor.progressbar[1] = guiCreateProgressBar(66, 385, 194, 16, false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(32, 387, 40, 14, \"Élet\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 134, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], \"center\", false) GUIEditor.progressbar[2] = guiCreateProgressBar(66, 411, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(26, 412, 40, 14, \"Éhség :\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 108, 68, 25) guiLabelSetVerticalAlign(GUIEditor.label[2], \"center\")GUIEditor.progressbar[3] = guiCreateProgressBar(66, 436, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(6, 437, 60, 14, \"Szomjúság\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 23, 100, 131) guiLabelSetVerticalAlign(GUIEditor.label[4], \"center\")GUIEditor.label[3] = guiCreateLabel(39, 360, 221, 15, \"Neved:\", false, GUIEditor.window[1]) elseif pagestate == 2 then -- jármüvek GUIEditor.gridlist[1] = guiCreateGridList(10, 55, 1550, 878, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], \"Jármüvek \", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"ID\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Lefogalva\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Rendszám\", 0.2) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, \"-\", false, false) endelseif pagestate == 3 then -- ingat.GUIEditor.gridlist[1] = guiCreateGridList(10, 55, 1550, 878, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], \"Ingatlanok\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"ID\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Zárva\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Pozició\", 0.2) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, \"-\", false, false) elseif pagestate == 4 then -- frak.outputChatBox(\"#00007f [bL] #fffff Hamarosan!\" true)elseif pagestate == 5 then -- beáll.outputChatBox(\"#00007f [bL] #fffff Hamarosan!\" true)end
local pagestate = 1GUIEditor = { button = {}, window = {}, progressbar = {}, gridlist = {}, label = {}}addEventHandler(\"onClientResourceStart\", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(171, 65, 1568, 913, \"\", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(9, 20, 284, 29, \"Járművek\", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(539, 19, 503, 30, \"Információk\", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(1286, 19, 272, 29, \"Ingatlanok\", false, GUIEditor.window[1]) GUIEditor.progressbar[1] = guiCreateProgressBar(66, 385, 194, 16, false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(32, 387, 40, 14, \"Élet\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 134, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], \"center\", false) GUIEditor.progressbar[2] = guiCreateProgressBar(66, 411, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(26, 412, 40, 14, \"Éhség :\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 108, 68, 25) guiLabelSetVerticalAlign(GUIEditor.label[2], \"center\") GUIEditor.button[4] = guiCreateButton(293, 23, 229, 26, \"Frakció\", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(1057, 22, 229, 26, \"Beállitások\", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(39, 360, 221, 15, \"Neved:\", false, GUIEditor.window[1]) GUIEditor.progressbar[3] = guiCreateProgressBar(66, 436, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(6, 437, 60, 14, \"Szomjúság\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 23, 100, 131) guiLabelSetVerticalAlign(GUIEditor.label[4], \"center\") end)addEventHandler (\"onClientClick\", GUIEditor.button[1], pagestatechanger1 )addEventHandler (\"onClientClick\", GUIEditor.button[2], pagestatechanger2 )addEventHandler (\"onClientClick\", GUIEditor.button[3], pagestatechanger3 )addEventHandler (\"onClientClick\", GUIEditor.button[4], pagestatechanger4 )addEventHandler (\"onClientClick\", GUIEditor.button[5], pagestatechanger5 )function pagestatechanger1 () pagestate = 1endfunction pagestatechanger2 () pagestate = 2endfunction pagestatechanger3 () pagestate = 3endfunction pagestatechanger4 () pagestate = 4endfunction pagestatechanger5 () pagestate = 5endfunction pagechanger () if pagestate == 1 then -- inf. GUIEditor.progressbar[1] = guiCreateProgressBar(66, 385, 194, 16, false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(32, 387, 40, 14, \"Élet\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 134, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], \"center\", false) GUIEditor.progressbar[2] = guiCreateProgressBar(66, 411, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(26, 412, 40, 14, \"Éhség :\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 108, 68, 25) guiLabelSetVerticalAlign(GUIEditor.label[2], \"center\") GUIEditor.progressbar[3] = guiCreateProgressBar(66, 436, 194, 15, false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(6, 437, 60, 14, \"Szomjúság\", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 23, 100, 131) guiLabelSetVerticalAlign(GUIEditor.label[4], \"center\") GUIEditor.label[3] = guiCreateLabel(39, 360, 221, 15, \"Neved:\", false, GUIEditor.window[1]) elseif pagestate == 2 then -- jármüvek GUIEditor.gridlist[1] = guiCreateGridList(10, 55, 1550, 878, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], \"Jármüvek \", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"ID\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Lefogalva\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Rendszám\", 0.2) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, \"-\", false, false) elseif pagestate == 3 then -- ingat. GUIEditor.gridlist[1] = guiCreateGridList(10, 55, 1550, 878, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], \"Ingatlanok\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"ID\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Zárva\", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], \"Pozició\", 0.2) for i = 1, 3 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, \"-\", false, false) elseif pagestate == 4 then -- frak. outputChatBox(\"#00007f [bL] #fffff Hamarosan!\") elseif pagestate == 5 then -- beáll. outputChatBox(\"#00007f [bL] #fffff Hamarosan!\") endend