Configuration
config.lua
Config = {}
Config.ShowTime = 2500
Config.TakeOverControls = true
Config.Top = '9vh'
Config.OffLabel = 'Radio Off'
Config.Debug = false
| Key | Type | Default | What it does |
|---|---|---|---|
Config.ShowTime | number (ms) | 2500 | How long the strip stays visible after a station change or after the radio key is released |
Config.TakeOverControls | boolean | true | Blocks the native radio wheel (control 85) every frame while in a vehicle and handles station changes from this resource while the key is held. false blocks nothing: the game keeps its wheel and wheel-scroll behaviour, and the strip only appears to show the current station |
Config.Top | CSS length | '9vh' | Distance of the strip from the top edge, sent to the NUI at start. Any CSS unit works ('9vh', '120px') |
Config.OffLabel | string | 'Radio Off' | Name shown under the last tile, which switches the radio off |
Config.Debug | boolean | false | Prints diagnostics to the F8 console: whether the vehicle qualifies, whether the key is held, every wheel or arrow input with the raw control states, and the station index before and after each tune |