milkshake333 Posted March 30, 2011 Share Posted March 30, 2011 Hi, I want to add something below money, something in GUI, but the problem is, I can't get the coordinates right for every resolution. Is there any calculation for it? It needs to be just below the money. Thanks in advance. Link to comment
Castillo Posted March 30, 2011 Share Posted March 30, 2011 Hi there, i had this problem some weeks ago, but with help of the forums i've solved it, i'm using this code to make it perfect on every resolution. x,y = guiGetScreenSize() guiCreateProgressBar((750/1024)*x, (170/768)*y, (232/1024)*x, (40/768)*y,false) This will create a progress bar under "money" in the normal GTA HUD. Link to comment
milkshake333 Posted March 30, 2011 Author Share Posted March 30, 2011 Okay, thank you very much! Link to comment
#Paper Posted March 30, 2011 Share Posted March 30, 2011 Hi there, i had this problem some weeks ago, but with help of the forums i've solved it, i'm using this code to make it perfect on every resolution. x,y = guiGetScreenSize() guiCreateProgressBar((750/1024)*x, (170/768)*y, (232/1024)*x, (40/768)*y,false) This will create a progress bar under "money" in the normal GTA HUD. 750/1024 or 170/768 what numbers are? Link to comment
Castillo Posted March 30, 2011 Share Posted March 30, 2011 1024 * 768 is my resolution, and the other stuff is the size, position. Link to comment
milkshake333 Posted March 30, 2011 Author Share Posted March 30, 2011 But will it work with other resolutions too then? Link to comment
Castillo Posted March 30, 2011 Share Posted March 30, 2011 Of course, else it wouldn't make any sense. Link to comment
milkshake333 Posted March 31, 2011 Author Share Posted March 31, 2011 ok, it worked, thanks. Link to comment
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