⚙️Configuration

Configuration guide of Radio V2 System.


Config.lua

Config = {}

Config.Framework = "auto" -- Determines which framework to use: auto, esx, or qb
Config.Locales = {}
Config.Language = "en" -- en, de, fr, es, pt, ja, ar, zh, tr

Config.RadioProp = "prop_cs_hand_radio" -- The radio prop model to use
Config.ItemName = "radio"
Config.Target = true
Config.ResetRadioCommand = "resetradio" -- Command to reset the radio settings

Config.Use = {
    command = {
        active = true, -- Enable/disable command usage
        command = "radio", -- The command to use
        needItem = true -- Whether the command requires an item
    },
    key = {
        active = true, -- Enable/disable key usage
        key = "F1", -- The key to use
        needItem = true -- Whether the key requires an item
    },
    item = {
        active = true, -- Enable/disable item usage
    }
}

Config.Animation = {
    dict = "cellphone@",
    name = "cellphone_text_in"
}

Config.SpecialFrequencies = {
    {
        job = "police",
        frequency = {
            1.0,
            2.0,
            3.0,
            4.0,
            5.0
        },

    },
    {
        job = "ambulance",
        frequency = {
            6.0,
            7.0,
            8.0,
            9.0,
            10.0
        },
    }
}

Config.Jammer = {
    active = true, -- Enable/disable jammer usage
    item = "jammer", -- The item name for the jammer
    place_time = 5000, -- The time it takes to plant the jammer (in milliseconds)
    prop = "h4_prop_h4_jammer_01a", -- The prop model for the jammer
    radius = 30.0, -- The radius of the jammer effect
    max_jammers = 1, -- The maximum number of jammers a player can place

    timeout = {
        active = true, -- Enable/disable timeout
        duration = 2 -- The duration of the timeout in minutes
    },

    everyone_can_use = true,
    permission = {
        "char1:1007a51229c83570bab9e38191e3ef482fb322d0"
        -- "others"
        -- "others"    
    }
}

Config.Notify = function(type, message)
    lib.notify({
        title = getMessage('notify_title'),
        description = message,
        type = type
    })
end

Config.HelpNotify = function(message)
    lib.showTextUI(message)
end

Config.HideHelpNotify = function()
    lib.hideTextUI()
end

Last updated