Sziasztok, se debug, se console, semmi nem ír rá semmit. Mi lehet benne a probléma?
function resourceStart ()
end
addEventHandler (\"onClientResourceStart\", getRootElement (), resourceStart)
function hud ()
local realTime = getRealTime()
local realTimeMin = realTime.minute
local realTimeHour = realTime.hour
local hp = getElementHealth (localPlayer)
local money = getPlayerMoney (localPlayer)
-- HP
dxDrawLine(1492 - 1, 42 - 1, 1492 - 1, 56, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 42 - 1, 1492 - 1, 42 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1492 - 1, 56, 1883, 56, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 56, 1883, 42 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawRectangle(1492, 42, 391 * hp, 14, tocolor(203, 0, 0, 255), true)
dxDrawLine(1492 - 1, 66 - 1, 1492 - 1, 80, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 66 - 1, 1492 - 1, 66 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1492 - 1, 80, 1883, 80, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 80, 1883, 66 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawRectangle(1492, 66, 391, 14, tocolor(33, 64, 180, 255), true)
dxDrawLine(1492 - 1, 90 - 1, 1492 - 1, 104, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 90 - 1, 1492 - 1, 90 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1492 - 1, 104, 1883, 104, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 104, 1883, 90 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawRectangle(1492, 90, 391, 14, tocolor(204, 122, 0, 255), true)
dxDrawText(\"$ \"..money, 1492, 128, 1910, 175, tocolor(148, 208, 2, 255), 2.00, \"pricedown\", \"left\", \"top\", false, false, false, false, false)
dxDrawLine(1492 - 1, 114 - 1, 1492 - 1, 128, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 114 - 1, 1492 - 1, 114 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1492 - 1, 128, 1883, 128, tocolor(0, 0, 0, 255), 1, true)
dxDrawLine(1883, 128, 1883, 114 - 1, tocolor(0, 0, 0, 255), 1, true)
dxDrawRectangle(1492, 114, 391, 14, tocolor(15, 76, 5, 255), true)
dxDrawLine(1492 - 1, 42 - 1, 1492 - 1, 56, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 42 - 1, 1492 - 1, 42 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1492 - 1, 56, 1883, 56, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 56, 1883, 42 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(1492, 42, 391, 14, tocolor(53, 0, 0, 255), false)
dxDrawLine(1492 - 1, 66 - 1, 1492 - 1, 80, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 66 - 1, 1492 - 1, 66 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1492 - 1, 80, 1883, 80, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 80, 1883, 66 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(1492, 66, 391, 14, tocolor(6, 13, 37, 255), false)
dxDrawLine(1492 - 1, 90 - 1, 1492 - 1, 104, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 90 - 1, 1492 - 1, 90 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1492 - 1, 104, 1883, 104, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 104, 1883, 90 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(1492, 90, 391, 14, tocolor(101, 60, 0, 255), false)
dxDrawLine(1492 - 1, 114 - 1, 1492 - 1, 128, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 114 - 1, 1492 - 1, 114 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1492 - 1, 128, 1883, 128, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(1883, 128, 1883, 114 - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(1492, 114, 391, 14, tocolor(6, 31, 2, 255), false)
dxDrawRectangle(1495, 17, 61, 25, tocolor(0, 0, 0, 255), false)
dxDrawText(realTimeHour..\":\"..realTimeMin, 1495, 15, 1556, 42, tocolor(255, 255, 255, 255), 1.00, \"pricedown\", \"center\", \"center\", false, false, true, false, false)
end
addEventHandler(\"onClientRender\", getRootElement(), hud)
E.: GUIEditorral dolgozom, annak bemásolom ezt a kódot, (az óra, a HP lekérése, a pénz lekérése kiszedve, mert a guied azt nem ismeri fel)
E2.: Probáltam simán, lekérések, meg minden nélkül, úgy se volt jó.
E3.: Mostanában, mintha nem jelenne meg semmilyen gui, dxDraw, amit írok.