Hello, today I have been having a problem with the dxDrawText & dxDrawRectangle.
I assign a button to trigger a function which looks similar to this:
local screenX, screenY = guiGetScreenSize()
function example ()
dxDrawText(getElementData(resourceRoot, "server:1") or "", screenX / 2 + 220, screenY / 2 - 220, 20, 120, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "top", true, false)
dxDrawText(getElementData(resourceRoot, "server:2") or "", screenX / 2 + 220, screenY / 2 - 200, 20, 120, tocolor(255, 255, 255, 255), 0.9, "default-bold", "center", "top", true, false)
dxDrawText(getElementData(resourceRoot, "server:3") or "", screenX / 2 + 220, screenY / 2 - 180, 20, 120, tocolor(255, 255, 255, 255), 0.9, "default-bold", "left", "top", true, true)
end
Once pressed, the text appears for about 0.01 milliseconds then disappears. I have never encounted this problem before, If anyone has a solution to this, it will be much appreciated.