F5 StudioF5 Studio
Skip to main content

Configuration

config.lua
Config = {}

Config.ShowTime = 2500
Config.TakeOverControls = true
Config.Top = '9vh'
Config.OffLabel = 'Radio Off'
Config.Debug = false
KeyTypeDefaultWhat it does
Config.ShowTimenumber (ms)2500How long the strip stays visible after a station change or after the radio key is released
Config.TakeOverControlsbooleantrueBlocks 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.TopCSS length'9vh'Distance of the strip from the top edge, sent to the NUI at start. Any CSS unit works ('9vh', '120px')
Config.OffLabelstring'Radio Off'Name shown under the last tile, which switches the radio off
Config.DebugbooleanfalsePrints 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