Jump to content
RAGE Multiplayer Community

[HELP] How to convert Resolution to X,Y position in the screen?


Maxeyas
 Share

Recommended Posts

Posted (edited)

Hi,

mp.game.graphics.drawText
  • x: Float: X position in the screen (0.0 to 1.0)
  • y: Float: Y position in the screen (0.0 to 1.0)

Does anybody know what does 0.0 to 1.0 means compared to screen resolution?

I want to know how to calculate resolution points to ragemp x,y points.

Example: Defualt screen Res.X = 1920 , ResY = 1080

Moving text to Res.X = 1438, Res.Y = 583

Ragemp points at this values are X= ? , Y= ?

How does this x, y works it does some kind of inner conversation... because it must relate to player screen resolution..

Edited by Maxeyas
Link to comment
Share on other sites

  • Maxeyas changed the title to [HELP] How to convert Resolution to X,Y position in the screen?
  • Xabi locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...