Skip to main content
Runs JavaScript in the game’s Panorama UI.

Panels

A panel is a Pointer to CUIPanel. You may also resolve one with FFI:
Panel addresses are validated before use:
RunScript and FindPanel also raise when the UI engine is not up yet (panorama: UI engine not available yet) and when there is no main menu panel to default to. Wrap them in pcall if you call them early.

Notes

Scripts run in the target panel’s JavaScript context. JavaScript errors appear in the Panorama console, not Lua. Calls made on the game thread run immediately. Calls from other threads are queued for the game thread.