Posts: 162
Threads: 37
Joined: Feb 2017
Reputation:
0
Hello guys, I see that some servers have their tips/tricks to prevent the textdraw resolution problem, their textdraws display well in all resolutions and I really want to know the way they do it, can somebody please tell me?
Thanks in advanced.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Use only whole numbers for the coordinates. GetPlayerCameraAspectRatio may also have been used.
Posts: 162
Threads: 37
Joined: Feb 2017
Reputation:
0
I think if I don't use decimals, the coordinates would be different from the original and of course, it won't display well.
Posts: 162
Threads: 37
Joined: Feb 2017
Reputation:
0
So which is the best way? Do you guys know?
Posts: 789
Threads: 76
Joined: Nov 2011
Reputation:
0
It's not smart as a developer to consider the probability of when the screen aspect ratio changes. If I were you, I would check the aspect ratio no matter what in order to get a proper result. (if needed)
Otherwise I can't say anything besides keeping the Floats at whole numbers when you position the textdraws. Is there anything specific you struggle with, let us know. Perhaps we can give a specific tip regarding it. (don't forget pics)