⚙️Configuration
Configuration guide of Radio System.
General Settings
Parameter
Description
Example Value
Config.Framework
Determines the framework to use (auto, esx, or qb).
"auto"
Config.debug
Enables or disables debug mode.
false
Config.radioName
Specifies the name of the radio item.
"radio"
Config.defaultVolume
Sets the default volume of the radio (range: 0–100).
50
Config.LoopTime
Time (in milliseconds) to check the radio activity. Lower values are faster but may impact performance.
500
Config.RadioProp
The object model used for the radio prop.
'prop_cs_hand_radio'
Job-Specific Channels
Parameter
Description
Example Value
Config.jobChannels
Defines channels restricted to specific job roles.
See example below.
Example:
Config.jobChannels = {
[1] = {
frequency = {
"1",
"2",
"3",
"4",
"5"
},
jobs = {
"police",
"bcso"
}
},
[2] = {
frequency = {
"2.0"
},
jobs = {
"ambulance"
}
}
}Localization Settings
Parameter
Description
Example Value
Config.Locale
Stores text messages for in-game interactions.
See example below.
Example:
Config.Locale = {
created = "Channel successfully created!",
created_fail = "Already created on the same frequency.",
disconnected = "You have successfully left the radio contact!",
disconnected_fail = "An error occurred while trying to disconnect from the radio link.",
connected = "You've successfully established radio contact!",
password = "Enter the password for this channel to enter!",
notfound = "frequency you want to enter was not found!",
wrong = "Password is not correct!",
wait = "Try again 1 second later.",
kick = "You were disconnected because you didn't have a radio.",
job = "This frequency is dedicated to a specific job!",
volume_up = "volume increased.",
volume_down = "volume reduced.",
max = "volume at maximum level!",
min = "volume at minimum level!"
}Framework Detection
The script automatically detects the framework using the getFramework function.
The detection works as follows:
ESX Framework: Uses
es_extended.QBCore Framework: Uses
qb-core.Auto Mode: Automatically detects the active framework.
Last updated