Jump to content

-


Recommended Posts

What you're doing right now it's not gonna appear in most of the screens. I would recommend to you to make a simple calculation to convert your gui's and dxdraw's to "adaptive". An example is:

  
local screenX, screenY = guiGetScreenSize() 
  
local dxDraw = dxDrawText(screenX*0.421, screenY*0.236) -- The decimals came from my gui's editor element positions on my screen divided by my screen size. For example 540/1280, 540 is the x position on my screen and 1280 is my screenX size. 
  

Link to comment

Just choose if you wanna use relative or fixed coordinates, if fixed coordinates then this:

local screenX, screenY = guiGetScreenSize() 

will be the bottom and right position of your screen, if relative coordinates then 0,0 will be the top left corner and 1,1 the bottom right corner, you do the math.

Ps, the function who's coordinates you should change are the dxDraw... functions inside the "onClientRender" event. Good luck.

Link to comment

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