Weii. Posted April 5, 2014 Share Posted April 5, 2014 How could I get world position from gui, like when I press a position on map image, it will outputChatBox the world position where I've clicked. Hope you undersand me! Wei Link to comment
Spajk Posted April 6, 2014 Share Posted April 6, 2014 Like the map that allows you to teleport on freeroam? Link to comment
Moderators Citizen Posted April 6, 2014 Moderators Share Posted April 6, 2014 You must get the ratio of the map you are using for your gui (for exemple 1pixel = 0.5 gta unit so the ratio is 1/0.5) And when the guy click on the image, you have to some maths using the map image ratio, the gui size on the screen and the click position. Show us the image you are using and the line where the image is being drawn (guiCreateStaticImage I guess). 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