GetMapPlayerPosition
ESO Lua API function — used by 120 of the 3,030 addons we indexed (combined 83,887,532 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetMapPlayerPosition(string unitTag)Returns: number normalizedX, number normalizedZ, number heading, bool isShownInCurrentMap, bool isSymbolicLocation
Real usage — from SkyShards
local x, y = GetMapPlayerPosition("player")
Short excerpt from the shipping addon SkyShards — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| SkyShards | 12,943,031 |
| HarvestMap | 9,454,533 |
| Destinations | 8,211,449 |
| Map Pins | 8,061,548 |
| Lost Treasure | 6,404,899 |
| LibMapPins | 5,838,255 |