Jump to content

[HELP] What wrong with custom font?!


Turbesz

Recommended Posts

Posted

I don't understand why, but if i restart my script which contain a custom font, then the script show nonsense word instead of specified... Just a complete MTA restart fix it.

I'm talking about this problem:

Normally: spacer.png

After i restarted the script: spacer.png

No, I didn't change anything in the script, and the font added to meta.

This is the code:

local Roboto = dxCreateFont("Roboto.ttf",10)
local RobotoL = dxCreateFont("RobotoL.ttf",11)

dxDrawText("Kereszt #1", sx/2-65-10,sy/2-55/2+2, 0, sy/2-515/2+2+36, tocolor(255,255,255,255), 1, Roboto, "left", "center",false,false,false,true)
dxDrawText("Ár: 50.000 Ft", sx/2-65-10,sy/2+25/2+2, 0, sy/2-515/2+2+36, tocolor(255,255,255,255), 1, RobotoL, "left", "center",false,false,false,true)

Wth?!

What if the only way not to feel bad, is to stop feeling, anything at all, forever?
- Hannah Baker

I cost a girl her life because I was afraid to love her...
- Clay Jensen

 ~ 13 Reasons Why

Posted

edit: i reinstalled mta client, but the problem was not solved

What if the only way not to feel bad, is to stop feeling, anything at all, forever?
- Hannah Baker

I cost a girl her life because I was afraid to love her...
- Clay Jensen

 ~ 13 Reasons Why

  • Moderators
Posted
3 hours ago, Turbesz said:

No, I didn't change anything in the script, and the font added to meta.

It looks like something has happened during copying the font to the cache(server or client). ?

You could try to convert the font to OTF format. (there are websites that can convert fonts)

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   ?

 

  Useful functions  3x 

  Tutorials  4x 

 

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