Greetings. I faced such problem that similar adaptation:
local screenW, screenH = guiGetScreenSize()
local px, py=screenW/1920, screenH/1080
Doesn't work correctly on 2560x1080 and above. To be more precise, the dx element is stretched and does not display correctly on the same 1920x1080 or less.
I tried to change "local px, py = screenW / 2560, screenH / 1080", then this method does not work on 1920x1080 and on other screens.
Are there any ways for such a resolution so that adaptation for resolutions works for example at 2560x1080
Thanks to