Functions
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
-- play a sound through Panorama
panorama.run([[
$.DispatchEvent('PlaySoundEffect', 'UIPanorama.popup_accept_match_waitingfordialog');
]])
-- send a chat message
panorama.run([[
GameInterfaceAPI.ConsoleCommand('say hello');
]])