# Configuration

1. Framework: By default the script should detect qb-core or esx if they're already started.
2. Inventory: Select the available inventories, if your inventory is not listed, **you** have to add support to that inventory in the custom files.
3. PermissionGroups: The list of groups that are going to be considered as admins.
4. Language: Only available English and Spanish, you can add more in locales.lua
5. MetadataSystem: A custom metadata system to avoid using the framework metadata
6. CustomReviveEvent: The client event of your ambulancejob that is executed when the player is revived
7. BindSystem: This enabled the binds, by default is disabled because in some servers this options don't work cause framework metadata issues.
8. KeepInputOnNUI: If you want to players to be able to walk when using radio.
9. NeedRadioItem: If you want to restrict the radio to only players with the items
10. RadioItems: A list of items that are considered radio and will open the UI when used.

```lua
-- FRAMEWORK CONFIG
Config = {}
Config.Framework = GetResourceState("qb-core") == "started" and "qbcore" or GetResourceState("es_extended") == "started" and "esx" or "none"
Config.Inventory = "origen_inventory" -- origen_inventory | old_origen_inventory | qb-inventory | qs-inventory | ox_inventory | ls-inventory | codem-inventory
Config.PermissionsGroups = {
    "mod" -- list of groups that will have all permissions, like "mod", "admin", "superadmin", etc
}
Config.Language = "es" -- en | es or you cant add your own language in locales.lua
Config.MetadataSystem = false -- If you want to use a custom metadata system
Config.CustomReviveEvent = "" -- The client event that will be triggered when the player is revived, if you are using a custom EMS script
Config.BindSystem = false -- If you want to use the keybinds system
Config.KeepInputOnNUI = false -- If you want to make able to move while the NUI is open
Config.HideWeaponOnTalk = true -- If you want to hide the weapon when the player is talking on the radio
Config.NeedRadioItem = true -- If you want to make the radio item required to open the radio interface
Config.RadioItems = { -- The items that the use will open the radio
    "radio",
}

-- RADIO CONFIG

RadioConfig = {}

RadioConfig.DefaultKey = "LMENU"
RadioConfig.DefaultBroadcastKey = "COMMA"
RadioConfig.DefaultOpenRadioKey = "Z"

RadioConfig.Anims = {
    { Dict = "random@arrests", Anim = "generic_radio_chatter" },
    {
        Dict = "cellphone@str",
        Anim = "cellphone_call_listen_a",
        Prop = "prop_cs_hand_radio",
        PropBone = 57005,
        PropPlacement = {
            0.12,
            0.02,
            -0.02,
            20.0,
            70.0,
            130.0
        },
    },
    {
        Dict = "anim@male@holding_radio",
        Anim = "holding_radio_clip",
        Prop = "prop_cs_hand_radio",
        PropBone = 28422,
        PropPlacement = {
            0.0750,
            0.0230,
            -0.0230,
            -90.0000,
            0.0,
            -59.9999
        },
    },
}
```
