Configuration

The configuration file is located at config/shared.lua. Below are some important parts of the configuration:

  • Framework: Set the framework you are using (esx or qb).

    Config.Framework = "qb"
  • ESX Export: If you are using ESX, set the script name. Default is "es_extended".

    Config.ESXExport = "es_extended"
  • Core: Set the core name for your framework. Default for ESX is "esx:getSharedObject" and for QB is "qb-core".

    Config.Core = "qb-core"
  • Mysql: Set the MySQL plugin you are using (oxmysql, mysql-async, or ghmattisql).

    Config.Mysql = "oxmysql"
  • Admins Groups: Add the groups that you want to have access to all radio channels and permissions to delete inhibitors.

    Config.adminsGroups = {"admin", "superadmin", "god"}
  • Draggable: If you want to be able to drag the radio.

    Config.draggable = true
  • Command: Command to open the radio.

    Config.command = "radio"
  • Radio At Waist: If you want the radio to be attached to the waist.

    Config.radioAtWaist = true
  • Use Item: If you want to use an item to get the radio.

    Config.useItem = true
  • Item Name: Item name in the database.

    Config.itemName = "radio"
  • Use Inhibitor: If you want to use the inhibitor.

    Config.useInhibitor = true
  • Inhibitor Item: Item name in the database.

    Config.inhibitorItem = "radio_inhibitor"
  • Inhibitor Prop: Prop name for the radio inhibitor.

    Config.inhibitorProp = "prop_police_radio_main"
  • Inhibitor Range: Range of the inhibitor.

    Config.inhibitorRange = 50.0
  • Delete Inhibitor Command: Command to remove the closest inhibitor. Only works for admins and the owner of the inhibitor.

    Config.deleteInhibitorCommand = "delin"

Last updated