milkshake333 Posted March 30, 2011 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.
Castillo Posted March 30, 2011 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.
#Paper Posted March 30, 2011 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?
Castillo Posted March 30, 2011 Posted March 30, 2011 1024 * 768 is my resolution, and the other stuff is the size, position.
milkshake333 Posted March 30, 2011 Author Posted March 30, 2011 But will it work with other resolutions too then?
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