Add Jobs

A guide of how to add supported jobs

  • The system support multiple jobs to use it in once

Grab a job from the "Jobs" section in the config (i will just grab the default one)

```lua
        ["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
            }
        },
```
  • The "police" on the top of the section is the job name (not label). to make another job compatible change this to the job name you want

  • The "callsigns" section allows you to make officer's callsign a different color based of it's number ["Command"] = { min = "200", max = "205", color = "#ff0000" }, First of all there is the index (which is not effecting anything but make sure it's doesn't exists twice) Second, there is the minimum and maximum range of the callsign. If for example my callsign is "203" and the range is between "200" and 205", my callsign color will be "#ff0000" (which is a red color) You can add as many colors as you like to the same job

  • The "channels" section allows you to divide your officers to groups based on their radio channel (Make sure the -1 channel will always exist in your job because it's the default one) ["4"] = { description = "Command Channel" }, The number is the radio channel (You can use channels with floats such as 142.3 and etc), if you put 0 in the channel number, only people with their radio turned off will show there The description is the name of this specific group.

And that's the whole process.

Last updated