> 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_deathtimeout/configuration.md).

# Configuration

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

`ensure array_deathtimeout`
{% endhint %}

## Config Files

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

```lua
Array = {}

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

Array.SaveInCache = true

Array.Time = 10 * 60 -- in seconds

Array.UiPosition = "top" -- top or bottom

Array.RemoveDeathTimeoutItem = {
    enabled = true,
    itemname = "traubenzucker",
    removeitem = true,
    useDelay = 3 * 60 -- It can only be used after X seconds of combat incapacity have elapsed.
}

Array.DisableFightControls = {
    DisablePlayerFiring = true,
    DisablePlayerCanDoDriveBy = true,
    DisableControlActions = {24, 25, 45, 140, 141, 142, 143, 257, 263}
}

-- 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.Locale = "en" -- de or en
Array.Locales = {
    ["de"] = {
        -- Ui
        title = "Kampfunfähig",
    
        -- Notify and Prints
        finished_notify = "Du kannst nun wieder schießen.",
        itemusedsuccessfully_notify = "Das Item wurde erfolgreich benutzt und du bist nun nicht mehr Kampfunfähig.",
        itemnotfound_notify = "Du hast das Item %s nicht",
        itemuseerror1_notify = "Du kannst das Item nicht benutzen wenn du nicht Kampfunfähig bist.",
        itemuseerror2_notify = "Du kannst das Item erst benutzen sobald %s Minuten der Kampfunfähig rum sind.",
        removedsuccessfully = "Die Kampfunfähigkeit wurde erfolgreich entfernt.",
        nopermissions_notify = "Du hast keine rechte dazu.",
        playernotfound_notify = "Du musst eine gültige Spieler Id angeben!",
        radiusnotfound_notify = "Du musst einen Radius angeben!",
        jobnotfound_notify = "Du musst einen Job angeben!",

        -- Webhook
        playeruseitem_webhook = "Der Spieler **%s** (ID: **%s**) hat das Item **%s** benutzt und dadurch seine Kampfunfähigkeit entfernt.",
        removeplayerbycommand_webhook = "Der Admin **%s** (ID: **%s**) hat dem Spieler **%s** (ID: **%s**) die Kampfunfähigkeit entfernt.",
        removeradiusbycommand_webhook = "Der Admin **%s** (ID: **%s**) hat allen Spielern im Radius von **%s** bei den Coords **%s** die Kampfunfähigkeit entfernt.",
        removejobbycommand_webhook = "Der Admin **%s** (ID: **%s**) hat allen Spielern mit dem Job **%s** die Kampfunfähigkeit entfernt.",
    },
    ["en"] = {
        -- UI
        title = "Deathtimeout",

        -- Notifications and Prints
        finished_notify = "Your deathtimeout has ended. You can shoot again.",
        itemusedsuccessfully_notify = "The item was used successfully and your deathtimeout has been removed.",
        itemnotfound_notify = "You do not have the item %s",
        itemuseerror1_notify = "You cannot use this item if you do not have an active deathtimeout.",
        itemuseerror2_notify = "You can only use this item once %s minutes of the deathtimeout have passed.",
        removedsuccessfully = "Deathtimeout removed successfully.",
        nopermissions_notify = "You do not have permission to do this.",
        playernotfound_notify = "You must provide a valid player ID!",
        radiusnotfound_notify = "You must specify a radius!",
        jobnotfound_notify = "You must specify a job!",

        -- Webhook
        playeruseitem_webhook = "Player **%s** (ID: **%s**) used the item **%s**, removing their deathtimeout.",
        removeplayerbycommand_webhook = "Admin **%s** (ID: **%s**) removed the deathtimeout from player **%s** (ID: **%s**).",
        removeradiusbycommand_webhook = "Admin **%s** (ID: **%s**) removed the deathtimeout from all players within a radius of **%s** at coordinates **%s**.",
        removejobbycommand_webhook = "Admin **%s** (ID: **%s**) removed the deathtimeout from all players with the job **%s**.",
    },
}

-- Skip Functions (Client Side)
Array.SkipDeathTimeout = function()
    -- if exports['array_pvp']:IsInPvp() then
    --     return true
    -- end
    return false
end

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

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

-- Client Exports & Events:
-- exports['array_deathtimeout']:RemoveDeathTimeOut() | return true
-- exports['array_deathtimeout']:GetDeathTimeOut() | return Seconds or false
-- TriggerClientEvent("array_deathtimeout:removedeathtimeout", playerid) | Server-to-client only (please use export for client-to-client)
```

{% endcode %}
{% endtab %}

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

```lua
ArrayServer = {}

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

-- Commands: (/rd {arg} {data})
-- /rd player {playerid or me | Example: 1}
-- /rd radius {radius | Example: 20}
-- /rd job {jobname | Example: police}
ArrayServer.RemoveCommands = {
    player = {
        console = true,
        groups = {
            ["pl"] = true
        }
    },
    radius = {
        console = true,
        groups = {
            ["pl"] = true
        }
    },
    job = {
        console = true,
        groups = {
            ["pl"] = true
        }
    },
}
```

{% endcode %}
{% endtab %}

{% tab title="color\_config.css" %}
{% code lineNumbers="true" expandable="true" %}

```css
:root {
  --main_color: #943CFF;
  --main_shadow: rgba(148, 60, 255, 0.45);
  --white_color: #FFFFFF;
  --white_shadow: rgba(255, 255, 255, 0.83);
}
```

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

## CSS Themes

{% tabs %}
{% tab title="red.css" %}
{% code lineNumbers="true" expandable="true" %}

```css
:root {
  --main_color: #ff3c3c;
  --main_shadow: rgba(255, 60, 60, 0.45);
  --white_color: #FFFFFF;
  --white_shadow: rgba(255, 255, 255, 0.83);
}
```

{% endcode %}
{% endtab %}

{% tab title="blue.css" %}
{% code lineNumbers="true" expandable="true" %}

```css
:root {
  --main_color: #3c7aff;
  --main_shadow: rgba(60, 144, 255, 0.45);
  --white_color: #FFFFFF;
  --white_shadow: rgba(255, 255, 255, 0.83);
}
```

{% endcode %}
{% endtab %}

{% tab title="yellow\.css" %}
{% code lineNumbers="true" expandable="true" %}

```css
:root {
  --main_color: #e2ff3c;
  --main_shadow: rgba(252, 255, 60, 0.45);
  --white_color: #FFFFFF;
  --white_shadow: rgba(255, 255, 255, 0.83);
}
```

{% endcode %}
{% endtab %}

{% tab title="green.css" %}
{% code lineNumbers="true" expandable="true" %}

```css
:root {
  --main_color: #7aff3c;
  --main_shadow: rgba(115, 255, 60, 0.45);
  --white_color: #FFFFFF;
  --white_shadow: rgba(255, 255, 255, 0.83);
}
```

{% endcode %}
{% endtab %}

{% tab title="orange.css" %}
{% code lineNumbers="true" expandable="true" %}

```css
:root {
  --main_color: #ffaa3c;
  --main_shadow: rgba(255, 170, 60, 0.45);
  --white_color: #FFFFFF;
  --white_shadow: rgba(255, 255, 255, 0.83);
}
```

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