GetPlayerMapBoundingBox: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{Needs Example}}
This function gets the GUI bounding box of the radar map texture.
This function gets the GUI bounding box of the radar map texture.



Revision as of 01:41, 16 February 2015

Accessories-text-editor.png Script Example Missing Function GetPlayerMapBoundingBox needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function gets the GUI bounding box of the radar map texture.

Syntax

int,int,int,int getPlayerMapBoundingBox ()

Returns

  • If the player's map is showing, it returns four integers: minX, minY, maxX, maxY. These are absolute position coordinates of where the player's map is drawn on the screen
    • minX,minY represent the world coordinate -3000,-3000
    • maxX,maxY represent the world coordinate 3000,3000.
    • Negative values may be returned if these coordinates are off screen.
  • If the map was not showing, a false boolean value is returned.


Example

--Needs an example

See Also