Installation
The installation process is fairly simple Simply put the folder of the resource inside your resource folder and ensure it in your server.cfg
ensure mr-10system
Make sure the dependencies are ensured and working before the script to avoid any problems
Configuration
Preview Of Config File
```lua
Config = {
CoreName = "qb-core",
Events = {
["Client:PlayerLoaded"] = "QBCore:Client:OnPlayerLoaded",
["Server:PlayerLoaded"] = "QBCore:Server:PlayerLoaded",
["Client:OnJobUpdate"] = "QBCore:Client:OnJobUpdate",
["Server:OnJobUpdate"] = "QBCore:Server:OnJobUpdate",
},
Settings = {
OpenGroupDefault = true, -- This is to make the groups are open by default (Soon will be a client side setting)
},
KeyMappings = {
Toggle = { command = "10system", description = "Toggles the 10-System", default = "F10" }, -- Leave the default as nil if you don't want it to be a keybind and only a command
Focus = { command = "10system_focus", description = "Focuses the 10-System", default = "PAGEDOWN" }, -- Leave the default as nil if you don't want it to be a keybind and only a command
},
Commands = {
SetCallsign = { -- If you already have this command on your server, please read the README file to make it work on your server
enabled = true,
command = "setcallsign",
description = "Sets your callsign",
args = { { name = "callsign", help = "The callsign you want to set" } }
},
Reset = { -- This is a command to reset the 10system settings
enabled = true,
command = "10system_reset",
description = "Resets the 10-System settings"
}
},
Jobs = {
["police"] = {
Callsigns = { -- This is to change the callsign color based on the callsign (it only works with numbers), the normal color cannot be changed (If you don't want it comment everything inside of it)
["Command"] = { min = "200", max = "205", color = "#ff0000" }, -- Make sure the "min" and "max" are string and the color is an hex color (BTW The index name doesn't matter but make sure it doesn't stays the same)
["SWAT"] = { min = "350", max = "399", color = "#000000" }, -- Make sure the "min" and "max" are string and the color is an hex color (BTW The index name doesn't matter)
},
Channels = { -- This is for the groups, the index is the radio number. MAKE SURE THE INDEX IS A STRING
["-1"] = { description = "Main Channel" }, -- This is a regular channel, here you will find people who are in channels you have not defined
["4"] = { description = "Command Channel" }, -- Placeholder channel, dpulicate or change if you want to
["5"] = { description = "Pursuit Channel" }, -- Placeholder channel, dpulicate or change if you want to
["0"] = { description = "Off Radio Channel" } -- This is a channel that is not on the radio, it is used for people who are not on the radio
}
},
["ambulance"] = {
Callsigns = { -- This is to change the callsign color based on the callsign (it only works with numbers), the normal color cannot be changed (If you don't want it comment everything inside of it)
["Command"] = { min = "200", max = "205", color = "#FF0000" }, -- Make sure the "min" and "max" are string and the color is an hex color (BTW The index name doesn't matter)
},
Channels = { -- This is for the groups, the index is the radio number. MAKE SURE THE INDEX IS A STRING
["-1"] = { description = "Main Channel" }, -- This is a regular channel, here you will find people who are in channels you have not defined
["7"] = { description = "Surgery Channel" }, -- Placeholder channel, dpulicate or change if you want to
["0"] = { description = "Off Radio Channel" } -- This is a channel that is not on the radio, it is used for people who are not on the radio
}
}
}
}
```
Last updated