Hiroszek Posted December 11, 2019 Share Posted December 11, 2019 If I use the dxCreateTexture function in some script, everyone else stops reading the fonts, if I remove dxCreateTexture everything returns to normal, only on mta resolution bigger than 1600x900 Link to comment
0 MTA Team ccw Posted December 11, 2019 MTA Team Share Posted December 11, 2019 Please make a simple resource which shows the problem Link to comment
0 Hiroszek Posted December 13, 2019 Author Share Posted December 13, 2019 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
0 CastiaL Posted December 14, 2019 Share Posted December 14, 2019 (edited) dxFonts only Supported only integer numbers, you need to round down to integer numbers etc: 15/(1920/1440) result: 11.25 Edited December 14, 2019 by CastiaL Link to comment
0 Hiroszek Posted December 14, 2019 Author Share Posted December 14, 2019 its only for scaling without it its the same Link to comment
0 Scripting Moderators Sarrum Posted December 18, 2019 Scripting Moderators Share Posted December 18, 2019 works fine for me Link to comment
0 Hiroszek Posted December 19, 2019 Author Share Posted December 19, 2019 on 1920x1080? Link to comment
0 Hiroszek Posted December 29, 2019 Author Share Posted December 29, 2019 reinstalling the system did not help either, changing the system resolution also did not help, I can do nothing more. This happens on every server in mta. Link to comment
0 Hiroszek Posted December 29, 2019 Author Share Posted December 29, 2019 I toss the video about the error on my side. As I run a resource (f11map) that uses dxCreateTexture, the font does not load. But when I run the same resource on 1280x720 everything works. Link to comment
Question
Hiroszek
If I use the dxCreateTexture function in some script, everyone else stops reading the fonts, if I remove dxCreateTexture everything returns to normal, only on mta resolution bigger than 1600x900
Link to comment
9 answers to this question
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