XJMLN Posted March 21, 2018 Posted March 21, 2018 Hi, is there any way to get (minimap) positons (gui)? I wanna create a images around the radar but on all resoultions radar is in another positions. Any solutions/functions?
Skully Posted March 22, 2018 Posted March 22, 2018 (edited) int, int, int, int getPlayerMapBoundingBox() Returns 4 ints in absolute positioning. Edited March 22, 2018 by Skully
MIKI785 Posted March 22, 2018 Posted March 22, 2018 7 hours ago, Skully said: int, int, int, int getPlayerMapBoundingBox() Returns 4 ints in absolute positioning. That's not what he wants, this function returns a pair of world x and y positions, these represent the are that is visible on the F11 map. He wants the screen coordinates of the HUD radar. I don't actually know how to get that, I'm only pointing out that this function won't help you so that you don't get confused.
Skully Posted March 22, 2018 Posted March 22, 2018 (edited) My bad, I thought he were referring to the F11 map. I don't think such a function exists for fetching the minimap positions, I'd suggest making your own and working around that. Edited March 22, 2018 by Skully
koragg Posted March 23, 2018 Posted March 23, 2018 You could just draw everything and make it look good on your resolution then use this: https://forum.multitheftauto.com/topic/96776-tut-scaling-drawinggui-elements-for-all-resolutions/
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