local sx, sy = guiGetScreenSize()
zmienna = 1920/sx
tektura = dxCreateTexture("image.png")
local font = dxCreateFont("font.ttf", 15/zmienna)
addEventHandler("onClientRender", root,
function()
dxDrawText("TEST TEXT", 1434/zmienna, sy - 81/zmienna, 1796/zmienna, sy - 4/zmienna, tocolor(255, 255, 255, 255), 1, font, "center", "center", false)
end)
Its working on resolution 1600x900 and smaller, but on 1920x1080 its not working, but if I remove "tektura = dxCreateTexture("image.png")" its works on every font and every image.