GUI Streams Module Reference
Module defined in `lua/vehicle/guistreams.lua`. Manages the registration and dispatch of high-frequency data streams from the vehicle to UI apps. UI apps subscribe to specific stream categories, and this module ensures only requested data is computed and transmitted each frame.
Module defined in lua/vehicle/guistreams.lua. Manages the registration and dispatch of high-frequency data streams from the vehicle to UI apps. UI apps subscribe to specific stream categories, and this module ensures only requested data is computed and transmitted each frame.
See Also
- Streams: Higher-level stream subscription and dispatch logic.
- Guihooks: The communication bridge that transmits stream data to the UI.
- Communication: Overview of VE → UI data flow.
Usage Example
-- Streams are typically managed automatically by the engine.
-- UI apps register interest in specific data categories,
-- and guistreams ensures only those categories are evaluated each frame.
-- Direct usage from vehicle extensions is rare — use guihooks.queueStream() instead.
guihooks.queueStream("myTelemetry", {rpm = electrics.values.rpm, speed = electrics.values.wheelspeed})Guihooks Module Reference
Communication bridge between vehicle Lua and game UI (JavaScript). This module handles event triggers, high-frequency data streams, and UI notifications.
HTML Texture Module Reference
Module defined in `lua/vehicle/htmlTexture.lua`. Manages HTML-based textures rendered onto vehicle surfaces, used for digital dashboards, infotainment screens, and other in-vehicle displays powered by embedded web views.