> For the complete documentation index, see [llms.txt](https://moon-store.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moon-store.gitbook.io/docs/moon-ui/minigames/maze-navigation.md).

# Maze Navigation

Navigate a mini-maze from start to end

<figure><img src="https://3546595727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoRne7ThJaBZiwCpSKT7V%2Fuploads%2Fdc6jSo5HRtxNxhe77pOa%2Fimage-removebg-preview%20(3).png?alt=media&amp;token=71ccf80b-17ec-4900-8f50-38d5ed1d846e" alt=""><figcaption></figcaption></figure>

```lua
-- Maze Navigation Lock
RegisterCommand('testmaze', function()
    exports['moon-ui']:OpenMazeNavigationLock(function(success)
        if success then
            print('Maze completed! Access granted.')
        else
            print('Maze failed! Access denied.')
        end
    end)
end)
```
