Ryder! Posted January 6, 2010 Share Posted January 6, 2010 hi, i want to get the world position ( x,y ) when the player click somewhere inside the f11 map. this is what i have so far: function onMapShow(key, keystate) if keystate == "down" then if isPlayerMapVisible () then showCursor(true) else showCursor(false) end end end bindKey ( "F11", "down", onMapShow) function mapclick(button, state, x, y) if state == "down" then if isPlayerMapVisible () then local minX, minY, maxX, maxY = getPlayerMapBoundingBox () if x >= minX and x <= maxX then --HERE I WANT TO GET THE WORLD POSITION end end end end Link to comment
50p Posted January 6, 2010 Share Posted January 6, 2010 As far as I remember, getPlayerMapBoundingBox returns coords based on your radar not the F11 map. I might be wrong though. 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