Lightbar Controller
Manages animated emergency lighting patterns for police, fire, and ambulance vehicles. Controls pattern sequencing, flash timing, and synchronizes multiple light groups. Supports configurable pattern tables defined in JBeam.
Manages animated emergency lighting patterns for police, fire, and ambulance vehicles. Controls pattern sequencing, flash timing, and synchronizes multiple light groups. Supports configurable pattern tables defined in JBeam.
Public API
| Function | Description |
|---|---|
setModeIndex(index) | Switches the active lighting pattern and updates static electrical signals. |
toggleMode() | Cycles to the next available lighting pattern. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData) | Parses complex lighting patterns and initializes the radial menu for mode selection. |
updateGFX(dt) | Iterates through active lighting patterns, advancing timers and updating electrics.values. |
Usage Example
-- Cycle lightbar mode
controller.getController("lightbar").toggleMode()See Also
- Beacon Spin — Rotating beacon light animation
JATO (Jet Assisted Take-Off)
Controls rocket-powered JATO boosters that apply massive thrust to the vehicle. Manages fuel consumption, thruster node forces, and particle/sound effects. Includes a hidden cheat sequence for infinite fuel mode.
Line Lock
Controls brake line locking valves that hold front brakes while releasing rears (or vice versa). Primarily used for drag racing burnouts — lock the front brakes to hold the car stationary while spinning the rear tires to heat them up.