addEvent(\"createCharacter1\",true)addEventHandler(\"createCharacter1\",getRootElement(),createCharacter)
triggerServerEvent(\"createCharacter1\",resourceRoot,characterNameText,ageText,skinID)
addEvent(\"createCharacter1\",true)addEventHandler(\"createCharacter1\",root,function(characterNameText,ageText,skinID)......end)
addEvent(\"createCharacter1\",true)addEventHandler(\"createCharacter1\",root,function(characterNameText,ageText,skinID) if characterName == false or characterName == \"\" or characterName = \" \" or characterName == nil or age == false or age == \"\" or age = \" \" or age == nil or skinID == false or skinID == \"\" or skinID == \" \" or skinID == nil then outputDebugString(\"Valamilyen adat nincs meg!\") outputDebugString(\"Karakter Név: \"..characterName..\" Kor: \"..age..\" skinID: \"..skinID) elseif age <= 17 or age >= 81 then outputDebugString(\"Túl nagy kor!\") else outputDebugString(\"(Elvileg) minden rendben!\") outputDebugString(\"Karakter Név: \"..characterName..\" Kor: \"..age..\" skinID: \"..skinId) endend)
addEventHandler(\"onClientResourceStart\", resourceRoot, function() megnyitvaCreate = true magadrolEdit = guiCreateMemo(0.74, 0.45, 0.23, 0.15, \"\", true) guiSetAlpha(magadrolEdit, 0) characterNameEdit = guiCreateEdit(0.74, 0.39, 0.23, 0.02, \"\", true) guiSetAlpha(characterNameEdit, 0) ageEdit = guiCreateEdit(0.74, 0.42, 0.03, 0.02, \"\", true) guiSetAlpha(ageEdit, 0) showCursor(true) end)local screenW, screenH = guiGetScreenSize()addEventHandler(\"onClientRender\", root, function() if megnyitvaCreate then characterNameText = guiGetText(characterNameEdit) ageText = guiGetText(ageEdit) magadrolText = guiGetText(magadrolEdit) dxDrawRectangle(1382, 0, 0, 420, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7354, screenH * 0.2120, screenW * 0.2417, screenH * 0.7491, tocolor(1, 0, 0, 180), false) --Háttér dxDrawRectangle(screenW * 0.7401, screenH * 0.8926, screenW * 0.2318, screenH * 0.0593, tocolor(1, 0, 0, 255), false) --Kész dxDrawText(\"Kész\", screenW * 0.7391, screenH * 0.8926, screenW * 0.9719, screenH * 0.9519, tocolor(255, 255, 255, 255), 1.00, \"pricedown\", \"center\", \"center\", false, false, false, false, false) --Kész szoveg dxDrawImage(screenW * 0.8193, screenH * 0.2213, screenW * 0.0740, screenH * 0.0935, \":loginpanel/logo.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false) --Logó dxDrawRectangle(screenW * 0.7484, screenH * 0.7463, screenW * 0.0365, screenH * 0.0546, tocolor(1, 0, 0, 255), false) --Bal dxDrawRectangle(screenW * 0.9292, screenH * 0.7463, screenW * 0.0365, screenH * 0.0546, tocolor(1, 0, 0, 255), false) --Jobb dxDrawText(\"<\", screenW * 0.7484, screenH * 0.7463, screenW * 0.7849, screenH * 0.8009, tocolor(255, 255, 255, 255), 2.00, \"pricedown\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\">\", screenW * 0.9292, screenH * 0.7463, screenW * 0.9656, screenH * 0.8009, tocolor(255, 255, 255, 255), 2.00, \"pricedown\", \"right\", \"top\", false, false, false, false, false) dxDrawText(skinID, screenW * 0.7839, screenH * 0.7454, screenW * 0.9292, screenH * 0.8009, tocolor(255, 255, 255, 255), 1.00, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(characterNameText, screenW * 0.7432, screenH * 0.3241, screenW * 0.9667, screenH * 0.3583, tocolor(255, 255, 255, 255), 2.00, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(ageText..\" Éves\", screenW * 0.8224, screenH * 0.3657, screenW * 0.8932, screenH * 0.3787, tocolor(255, 255, 255, 255), 1.00, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawLine((screenW * 0.7406) - 1, (screenH * 0.3898) - 1, (screenW * 0.7406) - 1, screenH * 0.4111, tocolor(250, 183, 4, 255), 1, false) dxDrawLine(screenW * 0.9703, (screenH * 0.3898) - 1, (screenW * 0.7406) - 1, (screenH * 0.3898) - 1, tocolor(250, 183, 4, 255), 1, false) dxDrawLine((screenW * 0.7406) - 1, screenH * 0.4111, screenW * 0.9703, screenH * 0.4111, tocolor(250, 183, 4, 255), 1, false) dxDrawLine(screenW * 0.9703, screenH * 0.4111, screenW * 0.9703, (screenH * 0.3898) - 1, tocolor(250, 183, 4, 255), 1, false) dxDrawRectangle(screenW * 0.7406, screenH * 0.3898, screenW * 0.2297, screenH * 0.0213, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.7406) - 1, (screenH * 0.4194) - 1, (screenW * 0.7406) - 1, screenH * 0.4407, tocolor(250, 183, 4, 255), 1, false) dxDrawLine(screenW * 0.7703, (screenH * 0.4194) - 1, (screenW * 0.7406) - 1, (screenH * 0.4194) - 1, tocolor(250, 183, 4, 255), 1, false) dxDrawLine((screenW * 0.7406) - 1, screenH * 0.4407, screenW * 0.7703, screenH * 0.4407, tocolor(250, 183, 4, 255), 1, false) dxDrawLine(screenW * 0.7703, screenH * 0.4407, screenW * 0.7703, (screenH * 0.4194) - 1, tocolor(250, 183, 4, 255), 1, false) dxDrawRectangle(screenW * 0.7406, screenH * 0.4194, screenW * 0.0297, screenH * 0.0213, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.7401) - 1, (screenH * 0.4500) - 1, (screenW * 0.7401) - 1, screenH * 0.6000, tocolor(250, 183, 4, 255), 1, false) dxDrawLine(screenW * 0.9703, (screenH * 0.4500) - 1, (screenW * 0.7401) - 1, (screenH * 0.4500) - 1, tocolor(250, 183, 4, 255), 1, false) dxDrawLine((screenW * 0.7401) - 1, screenH * 0.6000, screenW * 0.9703, screenH * 0.6000, tocolor(250, 183, 4, 255), 1, false) dxDrawLine(screenW * 0.9703, screenH * 0.6000, screenW * 0.9703, (screenH * 0.4500) - 1, tocolor(250, 183, 4, 255), 1, false) dxDrawRectangle(screenW * 0.7401, screenH * 0.4500, screenW * 0.2302, screenH * 0.1500, tocolor(255, 255, 255, 255), false) dxDrawText(characterNameText, screenW * 0.7396, screenH * 0.3870, screenW * 0.9703, screenH * 0.4111, tocolor(0, 0, 0, 255), 1.00, \"clear\", \"center\", \"center\", false, false, false, false, false) dxDrawText(ageText, screenW * 0.7406, screenH * 0.4194, screenW * 0.7703, screenH * 0.4407, tocolor(0, 0, 0, 255), 1.00, \"clear\", \"center\", \"center\", false, false, false, false, false) dxDrawText(magadrolText, screenW * 0.7401, screenH * 0.4500, screenW * 0.9703, screenH * 0.6000, tocolor(0, 0, 0, 255), 1.00, \"clear\", \"left\", \"top\", false, true, false, false, false) end end)function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false endendfunction elore (gomb, statusz, absX, absY) if megnyitvaCreate then if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(screenW * 0.7401, screenH * 0.8926, screenW * 0.2318, screenH * 0.0593, absX, absY) then --Kész --outputChatBox(\"kesz\") skinID = 233 triggerServerEvent(\"createCharacter1\",resourceRoot,characterNameText,ageText,skinID) end end endendaddEventHandler(\"onClientClick\",getRootElement(),elore)