Jump to content
  • 0

MTA:SA fonts not loading


Hiroszek

Question

9 answers to this question

Recommended Posts

  • 0
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.

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...