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

# Configuration

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

`ensure array_safezonecreator`
{% 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.DisableControls = {
    DisablePlayerFiring = true, -- If you need to change this, you have to edit the controls at the bottom.
    DisablePlayerCanDoDriveBy = true, -- If you need to change this, you have to edit the controls at the bottom.
    DisableControlActions = {24, 25, 45, 140, 141, 142, 143, 257, 263} -- https://docs.fivem.net/docs/game-references/controls/
}

-- 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 = "Safezone Creator",
        create = "Erstellen",
        name = "Name",
        status = "Status",
        speedlimit = "Geschwindigkeits Limit",
        teleport = "Teleportieren",
        edit = "Bearbeiten",
        delete = "Löschen",
        goback = "Zurück",
        marker = "Marker",
        radius = "Radius",
        coords = "Koordinaten",
        playercoords = "Derzeitige Koordinaten übernehmen",
        confirm = "Bestätigen",
        cancel = "Abbrechen",
        activated = "Aktiviert",
        deactivated = "Deaktiviert",
        unit = "KM/H",
        -- Notifys & Webhooks
        perms_notify = "Keine Berechtigung!",
        success_notify = "Safezone wurde erfolgreich erstellt!",
        edit_notify = "Safezone wurde bearbeitet!",
        deleted_notiy = "Safezone wurde gelöscht!",
        exist_notify = "Safezone existiert nicht!",
        error_notify = "Ungültige Daten erhalten!",
        empty_notify = "Bitte alle Werte ausfüllen!",
        value_notify = "Marker Alpha (A) muss zwischen 0 und 1 liegen!",
        doesexist_notify = "Diese Safezone existiert nicht!",
    },
    ["en"] = {
        -- UI
        title = "Safezone Creator",
        create = "Create",
        name = "Name",
        status = "Status",
        speedlimit = "Speed Limit",
        teleport = "Teleport",
        edit = "Edit",
        delete = "Delete",
        goback = "Back",
        marker = "Marker",
        radius = "Radius",
        coords = "Coordinates",
        playercoords = "Use Current Coordinates",
        confirm = "Confirm",
        cancel = "Cancel",
        activated = "Activated",
        deactivated = "Deactivated",
        unit = "MP/H",
        -- Notifications & Webhooks
        perms_notify = "You do not have permission!",
        success_notify = "Safezone has been created successfully!",
        edit_notify = "Safezone has been edited successfully!",
        deleted_notiy = "Safezone has been deleted!",
        exist_notify = "Safezone does not exist!",
        error_notify = "Invalid data received!",
        empty_notify = "Please fill in all fields!",
        value_notify = "Marker Alpha (A) must be between 0 and 1!",
        doesexist_notify = "This Safezone does not exist!",
    },
}

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.Groups = {
    ["admin"] = true
}

ArrayServer.Webhook = {
    enabled = true,
    Name = "Array Scripts Safezone Creator",
    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_div_color_2: #551D99;
  --button_color_2: #1c0f2b;
  --icondiv_color_2: #4C2080;
}
```

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

## CSS THEMES

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

```css
:root {
  --main_color: #FF0000;         
  --main_background: #0B0414;     
  --title_div_color_2: #990000;  
  --button_color_2: #2B0F0F;   
  --icondiv_color_2: #800000;    
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #0000FF;     
  --main_background: #040B14;   
  --title_div_color_2: #001D99;
  --button_color_2: #0F1C2B;     
  --icondiv_color_2: #204C80;  
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #FFFF00;         
  --main_background: #141404; 
  --title_div_color_2: #999900; 
  --button_color_2: #2B2B0F;    
  --icondiv_color_2: #808020; 
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #00FF00;        
  --main_background: #041404;     
  --title_div_color_2: #009900; 
  --button_color_2: #0F2B0F;     
  --icondiv_color_2: #208020;    
}
```

{% endcode %}
{% endtab %}

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

```css
:root {
  --main_color: #FFA500;      
  --main_background: #140B04;  
  --title_div_color_2: #995F00;  
  --button_color_2: #2B1C0F;     
  --icondiv_color_2: #805000;
}
```

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