# GetBestMapForUnit is not in World of Warcraft Forever: write C_Map.GetBestMapForUnit

Forever 1.60.1 (70959), Interface 16001. An addon that calls `GetBestMapForUnit` stops at /reload with `attempt to call global 'GetBestMapForUnit' (a nil value)`. Write `C_Map.GetBestMapForUnit`; its arguments and returns may differ from the old GetBestMapForUnit, read them first. Page: https://wowaddons.gg/forever-api/C_Map.md

```lua
uiMapID = C_Map.GetBestMapForUnit(unitToken)
```

Only works for the player and party members.

Arguments:
- `unitToken`: UnitToken

Returns:
- `uiMapID`: number, may be nil

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
