Turbesz Posted January 31, 2021 Posted January 31, 2021 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: After i restarted the script: 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
Turbesz Posted January 31, 2021 Author Posted January 31, 2021 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 IIYAMA Posted January 31, 2021 Moderators Posted January 31, 2021 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) 1 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now