> For the complete documentation index, see [llms.txt](https://arrayscripts.gitbook.io/arrayscripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arrayscripts.gitbook.io/arrayscripts/products/array_calleritem/configuration.md).

# Configuration

{% hint style="danger" %} <mark style="color:$danger;">**Important:**</mark> After making changes to the configuration, restart the resource using:

`ensure array_calleritem`
{% endhint %}

## Config Files

{% tabs %}
{% tab title="config.lua" %}
{% code lineNumbers="true" expandable="true" %}

```lua
Array = {}

Array.Locale = "en" -- de or en (Here you can select your language. If it is not yet available, you can either add it yourself or open a ticket on our Discord.)

Array.Framework = "auto" -- auto, esx, qbcore or custom

Array.SendFightAnnounceOnAllPlayers = false -- Should all players receive an announcement that the two fractions are fighting, or only the fraction members?

Array.Roles = {
    {
        enabled = true, -- If you want to use that, it has to be set to true.
        time = 10, -- in seconds
        makevehicleunusable = true, -- Do you want the vehicle to get destroyed? (With the "airplane" type, the player receives a parachute so they don't die.)
        vehicletype = "car", -- car or airplane
        vehicles = { -- Add or remove vehicles using their spawn names.
            [GetHashKey("vstr")] = true,
            [GetHashKey("revolter")] = true,
            [GetHashKey("schafter2")] = true,
            [GetHashKey("schafter5")] = true,
            [GetHashKey("komodafr")] = true,
            [GetHashKey("draftergpr")] = true,
        },
        locale = {
            ["de"] = {
                label = "Masse",
                announce = "Die Masse muss jetzt aussteigen – Alle Autos wurden Zerstört",
                notify = false -- You can add a notification here that the player receives when the vehicle is destroyed. (Default: false)
            },
            ["en"] = {
                label = "Mass",
                announce = "The mass have to get out now – all the cars were destroyed.",
                notify = false -- You can add a notification here that the player receives when the vehicle is destroyed. (Default: false)
            },
        }
    },
    {
        enabled = true, -- If you want to use that, it has to be set to true.
        time = 5 * 60, -- in seconds
        makevehicleunusable = true, -- Do you want the vehicle to get destroyed? (With the "airplane" type, the player receives a parachute so they don't die.)
        vehicletype = "car", -- car or airplane
        vehicles = { -- Add or remove vehicles using their spawn names.
            [GetHashKey("toros")] = true,
            [GetHashKey("Komoda")] = true
        },
        locale = {
            ["de"] = {
                label = "Backstep",
                announce = "Der Backstep muss jetzt aussteigen – Das Auto wurden Zerstört",
                notify = false -- You can add a notification here that the player receives when the vehicle is destroyed. (Default: false)
            },
            ["en"] = {
                label = "Backstep",
                announce = "The Backstep have to get out now – the car was destroyed.",
                notify = false -- You can add a notification here that the player receives when the vehicle is destroyed. (Default: false)
            },
        }
    },

    -- If you want to include helicopters, you need to set `enabled` to `true` (default: `false`).
    {
        enabled = false, -- If you want to use that, it has to be set to true.
        time = 1 * 60, -- in seconds
        makevehicleunusable = true, -- Do you want the vehicle to get destroyed? (With the "airplane" type, the player receives a parachute so they don't die.)
        vehicletype = "airplane", -- car or airplane
        vehicles = { -- Add or remove vehicles using their spawn names.
            [GetHashKey("buzzard2")] = true,
            [GetHashKey("supervolito")] = true,
        },
        locale = {
            ["de"] = {
                label = "Heli",
                announce = "Der Heli muss jetzt aussteigen – Der Heli wurden Zerstört",
                notify = "Der Heli wurde zerstört. Du hast einen Fallschirm, den du benutzen kannst. (In der Luft F drücken, um den Fallschirm zu öffnen.)",
            },
            ["en"] = {
                label = "Helicopter",
                announce = "The helicopter have to get out now – all the cars were destroyed.",
                notify = "The helicopter has been destroyed. You have a parachute that you can use. (Press F while in the air to open the parachute.)"
            },
        }
    },

    -- You can create as many roles as you like. if you need help, please open a ticket on our Discord.
}

Array.DefaultLocales = {
    ["de"] = {
        title = "Fraktions Fight",
        fraction = "Fraktion",
        starttime = "Start Zeit",
        fightStartedAnnouncementForFractionMembers = "Die Fraktion %s kämpft gegen die Fraktion %s! Die Masse muss in 10 Sekunden aussteigen.",
        fightStartedAnnouncementForAllPlayers = "Die Fraktion %s kämpft gegen die Fraktion %s!",
        itemused_notify = "Du hast das Caller Item erfolgreich benutzt!",
        itemusederror_notify = "Deine Fraktion ist bereits eingetragen",
        fightStarted_webhook = "Der Fight zwischen der Fraktion **%s** und der Fraktion **%s** hat um **%s Uhr** gestartet.",
    },
    ["en"] = {
        title = "Fraction Fight",
        fraction = "Fraction",
        starttime = "Start Time",
        fightStartedAnnouncementForFractionMembers = "The fraction %s is fighting against the fraction %s! Everyone must leave the vehicle within 10 seconds.",
        fightStartedAnnouncementForAllPlayers = "The fraction %s is fighting against the fraction %s!",
        itemused_notify = "You have successfully used the caller item!",
        itemusederror_notify = "Your fraction has already been registered",
        fightStarted_webhook = "The fight between the fraction **%s** and the fraction **%s** started at **%s**."
    },
}

Array.ClientNotify = function(title, message, type)
    TriggerEvent("array_hud:notify", title, message, type, 5000)
end

Array.ClientAnnounce = function(title, message)
    TriggerEvent("array_hud:announce", title, message, 5000)
end

Array.ServerNotify = function(id, title, message, type)
    TriggerClientEvent("array_hud:notify", id, title, message, type, 5000)
end
```

{% endcode %}
{% endtab %}

{% tab title="s\_config.lua" %}
{% code lineNumbers="true" expandable="true" %}

```lua
ArrayServer = {}

ArrayServer.Item = {
    itemname = "calleritem",
    removeonuse = false,
    blacklistjobs = {
        ["unemployed"] = true,
        ["ambulance"] = true
    }
}

ArrayServer.Webhook = {
    enabled = true,
    Name = "Array Scripts Calleritem",
    Logo = "https://arrayscripts.com/images/Logo.gif",
    Url = "YOUR_WEBHOOK",
    Color = 10181046
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
