local screenWidth, screenHeight = guiGetScreenSize()addEventHandler(\"onClientRender\", root, function()dxDrawRectangle(screenWidth/2 - 300, screenHeight/2 - 200, 600, 400, (isCursorInPosition(screenWidth/2 - 300, screenHeight/2 - 200, 600, 400) and tocolor(255, 0, 0) or tocolor(0, 255, 0)))end)function isCursorInPosition(rectX, rectY, rectW, rectH)local cursorX, cursorY = getCursorPosition()cursorX, cursorY = cursorX * screenWidth, cursorY * screenHeightreturn (cursorX >= rectX and cursorX <= rectX+rectW) and (cursorY >= rectY and cursorY <= rectY+rectH)end
dxDrawLine(1063 - 1, 384 - 1, 1063 - 1, 758, tocolor(0, 16, 227, 156), 1, false) dxDrawLine(1356, 384 - 1, 1063 - 1, 384 - 1, tocolor(0, 16, 227, 156), 1, false) dxDrawLine(1063 - 1, 758, 1356, 758, tocolor(0, 16, 227, 156), 1, false) dxDrawLine(1356, 758, 1356, 384 - 1, tocolor(0, 16, 227, 156), 1, false) dxDrawRectangle(1063, 384, 293, 374, tocolor(0, 0, 0, 156), false) dxDrawRectangle(1062, 383, 294, 17, tocolor(0, 16, 227, 156), false) dxDrawText(\"Egyedi skinek\", 1060, 382, 1356, 400, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(1082, 421, 254, 35, tocolor(201, 0, 0, 164), false) dxDrawRectangle(1082, 466, 254, 35, tocolor(201, 0, 0, 164), false) dxDrawRectangle(1082, 511, 254, 35, tocolor(201, 0, 0, 164), false) dxDrawRectangle(1082, 556, 254, 35, tocolor(201, 0, 0, 164), false) dxDrawRectangle(1082, 601, 254, 35, tocolor(201, 0, 0, 164), false) dxDrawRectangle(1082, 646, 254, 35, tocolor(201, 0, 0, 164), false) dxDrawRectangle(1082, 691, 254, 35, tocolor(201, 0, 0, 164), false) dxDrawText(\"Black Dwarf\", 1081, 420, 1336, 456, tocolor(0, 0, 0, 254), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Kilépés\", 1082, 690, 1337, 726, tocolor(0, 0, 0, 254), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"-\", 1082, 465, 1337, 501, tocolor(0, 0, 0, 254), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"-\", 1082, 511, 1337, 547, tocolor(0, 0, 0, 254), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"-\", 1082, 555, 1337, 591, tocolor(0, 0, 0, 254), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"-\", 1082, 600, 1337, 636, tocolor(0, 0, 0, 254), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"-\", 1082, 646, 1337, 682, tocolor(0, 0, 0, 254), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
dxDrawRectangle(1082, 421, 254, 35, tocolor(201, 0, 0, 164), false) -> dxDrawRectangle(1082, 421, 254, 35, (isCursorInPosition(1082, 421, 254, 35) and tocolor(RGB, amikor rajta van az egér) or tocolor(RGB, amikor nincs rajta az egér)), false)
Annyi, hogy amit a dxDrawRectangle-nél használsz első 4 argument, azt átmásolod az isCursorInPosition függvénybe. De használd a guiGetScreenSize() -t. dxDrawRectangle(1082, 421, 254, 35, tocolor(201, 0, 0, 164), false) -> dxDrawRectangle(1082, 421, 254, 35, (isCursorInPosition(1082, 421, 254, 35) and tocolor(RGB, amikor rajta van az egér) or tocolor(RGB, amikor nincs rajta az egér)), false)