> ## Documentation Index
> Fetch the complete documentation index at: https://lua.wingless.one/llms.txt
> Use this file to discover all available pages before exploring further.

# Panorama

> Execute JavaScript in the game's Panorama UI.

Execute JavaScript in the game's Panorama UI.

## Functions

```lua theme={null}
panorama.run(js [, target])
```

| Parameter | Type | Default | Description |
| - | - | - | - |
| `js` | `string` | | JavaScript code to execute |
| `target` | `string` | `"hud"` | `"hud"` (in-game HUD) or `"menu"` (main menu) |

## Example

```lua theme={null}
-- play a sound through Panorama
panorama.run([[
    $.DispatchEvent('PlaySoundEffect', 'UIPanorama.popup_accept_match_waitingfordialog');
]])

-- send a chat message
panorama.run([[
    GameInterfaceAPI.ConsoleCommand('say hello');
]])
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.