Configuration
This page provides an explanation of all current configuration settings. It’s important to set up the script correctly, as incorrect configurations may lead to issues during use.
Config = {}
Config.Debug = false
Config.ShowUnitUI = false -- Show bottom right the unit and busy state UI
Config.RequiredItem = false -- Set this to false to disable radio item
Config.DisconnectPlayerOnDeath = false -- Set this to true if you want when a player dies, disconnect him from the frequency
Config.NameFormat = '{name} ({rank})' -- Set name formatting to your adjustments, this default setting will show names like this: Tyler Brooks (Officer)
Config.SetChannelCommand = 'setchannel'
Config.ClearChatCommand = 'clearradiochat' -- Set this to false to disable
Config.Features = {} -- To add a new job, simply copy the following structure and change the job name
Config.Features['police'] = {}
Config.Features['police'].RadioChat = true -- Enables or disables chat with that job
Config.Features['police'].CanMovePlayers = true -- Enables or disables chat with that job
Config.Features['police'].EnterLeaveFrequencyMessages = 10 -- Enable/disable a message in the internal chat when a player joins/leaves the frequency. Set false to disable / minutes to delete system messages to enable them
Config.Features['police'].ChangeBusyColorWhenTalking = true -- Change the busy state color when the player is talking on the radio. Set this to false to disable
Config.Features['police'].Prefixes = { -- Set this to false to disable
'HSIU',
'K-9',
'AIR',
'SAHP'
}
Config.Features['police'].Nomenclatures = { -- Set this to false to disable
{ label = 'BRADFORD', value = 'BRADFORD' },
{ label = 'WHISKEY', value = 'WHISKEY' },
{ label = 'DAVID', value = 'DAVID' }
}
Config.TacsKeybinds = {} -- Set this to false to disable
Config.TacsKeybinds.MaximumTacs = 9
Config.TacsKeybinds.TacsChannelsName = 'TAC-0' -- The name of TACs channel name, for example TAC-01, leave it without the last number
Config.TacsKeybinds.Keys = {
[1] = 1, -- Go to TAC-01, with number 1, so [1] is number of tac and = 1 is the key, for example "G"
[2] = 2,
[3] = 3,
[4] = 4,
[5] = 5,
[6] = 6,
[7] = 7,
[8] = 8,
[9] = 9
}
Config.Keybinds = {}
Config.Keybinds.Combination = 'LMENU' -- Key needed to go to TACs or other actions (for example, L Alt + 1: Go to TAC-01) (set to false to disable the keybind)
Config.Keybinds.GoLastFrequency = 'OEM_3' -- Key to go to last frequency visited (for example, Combination + this key: Go to last frequency) (set to false to disable the keybind)
Config.Keybinds.ToggleBusyState = 'F11' -- Key to toggle busy state (set to false to disable the keybind)
Config.Keybinds.ToggleInterface = 'F7' -- Key to toggle in-game NUI (set to false to disable the keybind)
Config.Frequencies = {}
Config.Frequencies['police'] = {
{
name = 'Internal Frequencies', -- Group name
channels = {
{
name = 'SECRETARY', -- Channel name
frequency = 501, -- Frequency of the channel (be sure doesn't repeats!)
speakGlobal = 1, -- If you want him not to hear and not to be able to talk to the whole mesh, set it to false. If you want it to listen to the mesh and be able to talk, enter the mesh number you want it to talk to, you must set the other channels you want it to listen to and talk to them to the same number.
},
{
name = 'ASSIGNATION',
frequency = 501.01,
speakGlobal = 1,
},
}
},
}
Last updated