> For the complete documentation index, see [llms.txt](https://docs.loverp-scripts.de/love-rp-de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.loverp-scripts.de/love-rp-de/ecall/installation-and-konfiguration.md).

# Installation & Konfiguration

{% hint style="warning" %}
Ich empfehle zur Installation von Scripts **WinSCP**\
\
**FileZilla** überträgt in den meisten Fällen einige verschlüsselte Dateien nicht. Dadurch kann es passieren, dass die Scripts nicht funktionieren!
{% endhint %}

## 1. ECall herunterladen und starten

Nach dem Kauf des ECall Scripts über den Tebex Store kannst du es unter folgendem Link herunterladen und über ein FTP Programm auf deinem Server hinzufügen.

{% embed url="<https://portal.cfx.re>" %}

Füge ECall anschließend in deine Start Config hinzu.\
ECall muss **nach** der Framework und MySQL Ressource starten.

```
start ecall
```

## 2. Items erstellen

{% tabs %}
{% tab title="Standard QBCore" %}
Script: qb-core\
Dateiname: shared/items.lua\
\
Füge folgende Einträge für die Items hinzu:

```
['ecall_retrofit'] 			 	 = {['name'] = 'ecall_retrofit', 			  			['label'] = 'eCall Nachrüstset', 				['weight'] = 100, 	    ['type'] = 'item', 		['image'] = 'ecall.png', 				['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'eCall Nachrüstset zum Einbau in jedes Fahrzeug'},
['ecall_expand'] 			 	 = {['name'] = 'ecall_expand', 			  			['label'] = 'eCall Ausbauset', 				['weight'] = 100, 	    ['type'] = 'item', 		['image'] = 'ecall.png', 				['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'eCall Ausbauset zum Ausbau aus ausgerüsteten Fahrzeugen'},
```

{% endtab %}

{% tab title="Standard ESX" %}

```
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('ecall_retrofit', 'eCall Nachrüstset', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('ecall_expand', 'eCall Ausbauset', 1, 0, 1);
```

{% endtab %}

{% tab title="qs-inventory" %}

```
['ecall_retrofit'] = {
    name = 'ecall_retrofit',        -- Unique ID used internally by the inventory
    label = 'eCall Nachrüstset',       -- Name shown to players
    weight = 500,                 -- Weight of the item
    type = 'item',                -- Type: item or weapon
    image = 'ecall_retrofit.png',   -- Image located in html/images/
    unique = false,               -- Can stack with other items
    useable = true,               -- Player can use this item
    shouldClose = true,           -- Inventory closes when used
    description = 'eCall Nachrüstset zum Einbau in allen Fahrzeugen.'
},
['ecall_expand'] = {
    name = 'ecall_expand',        -- Unique ID used internally by the inventory
    label = 'eCall Ausbauset',       -- Name shown to players
    weight = 500,                 -- Weight of the item
    type = 'item',                -- Type: item or weapon
    image = 'ecall_expand.png',   -- Image located in html/images/
    unique = false,               -- Can stack with other items
    useable = true,               -- Player can use this item
    shouldClose = true,           -- Inventory closes when used
    description = 'eCall Ausbauset zum Ausbau aus ausgerüsteten Fahrzeugen.'
}
```

{% endtab %}
{% endtabs %}

## 3. Admin Zugriff (ACE Permission)

Administratoren haben die Möglichkeit, mit dem Befehl **/setecall** Fahrzeuge ohne Item mit eCall auszustatten bzw. das eCall auszubauen.

```
#ACE Permission anhand der License ID
add_ace identifier.license:xxxx "ecall.admin" allow

#ACE Permission anhand der Steam ID
add_ace identifier.steam:xxxx "ecall.admin" allow

#ACE Permission für Benutzer Gruppen
add_ace group.superadmin "ecall.admin" allow
```

## 4. Konfiguration
