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

# Configuration

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

`ensure array_revivestation`
{% endhint %}

## Config Files

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

```lua
Array = {}

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

Array.ServerName = "ARRAY SCRIPTS" -- Your Server Name

Array.DefaultSettings = {
    Radius = 5.0, -- Maximum distance at which nearby players will be shown.
    Price = 2000 -- Amount a player must pay to revive another player.
}

-- Configure whether the revive station should automatically disable once a certain number of medics are online.
Array.JobSettings = {
    enabled = true, -- true or false
    medicjob = "ambulance", -- Medic Job Name

    -- Set the maximum number of medics that can be online before the revive station is disabled.
    -- Example: If maxmedics = 6, the revive station will remain active with up to 6 medics online
    -- and will automatically disable once 7 or more medics are online.
    maxmedics = 6
}

Array.Positions = { -- ReviveStation Positions
    vector3(-447.6133, -340.9843, 34.5018),
    vector3(-825.1148, -1228.2047, 7.3293),
    vector3(1838.8884, 3673.6223, 34.2766),
    vector3(162.1055, 6636.5366, 31.5572),
}

Array.Marker = { -- Marker Settings
    DrawDistance = 15.0,
    Scale = vector3(1.0, 1.0, 1.0),
    Type = 21, 
    Color = {r = 136, g = 0, b = 255, a = 100},
    MoveUpAndDown = false,
    Rotate = true,
}

Array.Blip = { -- Blip Settings (https://docs.fivem.net/docs/game-references/blips/)
    enabled = true,
    Sprite = 61,
    Color = 50,
    Scale = 0.8
}

-- 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 = "Revive Station",
        blip_name = "Revive Station",
        cash = "Bar",
        bank = "Bank",
        name = "Name",
        price = "Preis",
        revivebutton = "Reviven",
        noplayersfound = "Keine Spieler gefunden",
        toomanymedicsonline = "Es sind mehr als %s Medics Online!",

        -- Notify and Prints
        help_notify = "Drücke E um die Revive Station zu öffnen!",
        notenoughmoney_notify = "Du hast nicht genug Geld!",
        playersuccessfullyrevived_notify = "Du hast den Spieler %s (ID: %s) erfolgreich revived.",
        playersuccessfullyrevived2_notify = "Du wurdest von dem Spieler %s (ID: %s) erfolgreich revived.",

        -- Webhook
        reviveplayer_webhook = "Der Spieler **%s** (ID: **%s**) hat den Spieler **%s** (ID: **%s**) bei einer Revive Station revived",
    },

    ["en"] = {
        -- Ui
        title = "Revive Station",
        blip_name = "Revive Station",
        cash = "Cash",
        bank = "Bank",
        name = "Name",
        price = "Price",
        revivebutton = "Revive",
        noplayersfound = "No players found",
        toomanymedicsonline = "There are more than %s Medics online!",

        -- Notify and Prints
        help_notify = "Press E to open the Revive Station!",
        notenoughmoney_notify = "You do not have enough money!",
        playersuccessfullyrevived_notify = "You successfully revived player %s (ID: %s).",
        playersuccessfullyrevived2_notify = "You were successfully revived by player %s (ID: %s).",

        -- Webhook
        reviveplayer_webhook = "Player **%s** (ID: **%s**) revived player **%s** (ID: **%s**) at a Revive Station",
    },
}

Array.HelpNotify = function(key, text)
    if GetResourceState('array_hud') == 'started' then
        exports["array_hud"]:HelpNotify(key, text)
        return
    end

    SetTextComponentFormat('STRING')
    AddTextComponentString(text)
    DisplayHelpTextFromStringLabel(0, 0, 1, -1)

    -- Or your Custom Help Notify:
    -- exports["hud"]:HelpNotify(key, text)
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
```

{% endcode %}
{% endtab %}

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

```lua
ArrayServer = {}

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

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #893AE6;
  --main_background: #0B0414;
  --title_color_2: #551D99;
  --button_color_2: #1c0f2b;
  --container_color_2: #4C2080;
}
```

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

## CSS Themes

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

```css
:root {
  --main_color: #E63A3A;
  --main_background: #140404;
  --title_color_2: #991D1D;
  --button_color_2: #2b0f0f;
  --container_color_2: #804020;
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #3A6FE6;
  --main_background: #040B14;
  --title_color_2: #1D3A99;
  --button_color_2: #0F1B2B;
  --container_color_2: #204C80;
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #E6D73A;
  --main_background: #141304;
  --title_color_2: #99911D;
  --button_color_2: #2B290F;
  --container_color_2: #807A20;
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #3AE67A;
  --main_background: #04140A;
  --title_color_2: #1D993F;
  --button_color_2: #0F2B17;
  --container_color_2: #20804A;
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #E68A3A;
  --main_background: #140A04;
  --title_color_2: #99511D;
  --button_color_2: #2B170F;
  --container_color_2: #805020;
}
```

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