> For the complete documentation index, see [llms.txt](https://docs.lifev.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lifev.eu/scripts/items/lifevisuals_workstations/installation.md).

# Installation

Der komplette Leitfaden, um lifevisuals\_workstations zu installieren: Abhängigkeiten, Dateien, SQL und \`server.cfg\`.

Hier bekommst du den vollständigen Leitfaden, um **lifevisuals\_workstations** auf deinem Server zum Laufen zu bekommen.

### Voraussetzungen

| Abhängigkeit  | Wofür                                                                                               | Aufgerufen werden                        | Details                                     |
| ------------- | --------------------------------------------------------------------------------------------------- | ---------------------------------------- | ------------------------------------------- |
| `es_extended` | Spieler, Jobs, Geldkonten und Menüs; das Script holt sich das Shared-Objekt über `getSharedObject`. | —                                        | [Integration](/integrationen/framework.md)  |
| `hex_4_hud`   | Kompatibel mit hex\_4\_hud für Benachrichtigungen und HUD-Ausgaben (optional).                      | `HelpNotify`, `HideHelpNotify`, `Notify` | [Integration](/integrationen/hud-notify.md) |
| `oxmysql`     | MySQL-Anbindung: legt Tabellen an und läuft alle Abfragen.                                          | —                                        | [Integration](/integrationen/datenbank.md)  |

### Schritt für Schritt

{% stepper %}
{% step %}

#### 1. lifevisuals\_workstations entpacken

Lege den Ordner `lifevisuals_workstations` aus deinem Download in dein `resources`-Verzeichnis. Der Ordnername muss exakt `lifevisuals_workstations` bleiben, sonst schlagen Export-Aufrufe und `@lifevisuals_workstations`-Abhängigkeiten fehl.
{% endstep %}

{% step %}

#### 2. Config prüfen: `config/config.lua`

Öffne `config/config.lua` und passe Pfad, Webhooks und Berechtigungs-Gruppen an deine Stadt an. Die wichtigsten Werte stehen im Kapitel [Konfiguration](/scripts/items/lifevisuals_workstations/konfiguration.md).
{% endstep %}

{% step %}

#### 3. Datenbank importieren

Spiele die SQL-Dateien in deiner FiveM-Datenbank ein: `LifeVisuals_workstationscreator.sql`, `workstations.sql`. Dadurch entstehen `LifeVisuals_workstationscreator`, `workstations_jobs`.
{% endstep %}

{% step %}

#### 4. `server.cfg` ergänzen

Reihenfolge einhalten — ein Resource startet nicht, wenn seine Abhängigkeit noch nicht geladen ist:

```cfg
ensure es_extended
ensure oxmysql
ensure lifevisuals_workstations
```

{% endstep %}

{% step %}

#### 5. Tasten belegen

Nach dem ersten Start kannst du in den FiveM-Tastatureinstellungen (Ressourcen lifevisuals\_workstations) die Belegungen für `stationcreator_preview` setzen.
{% endstep %}

{% step %}

#### 6. Server neustarten und testen

Starte den Server neu (nicht nur `restart`) und prüfe die Konsole: erscheinen keine Fehler zu `oxmysql`/`mysql-async`, ist das Resource einsatzbereit.
{% endstep %}
{% endstepper %}

### Tastenbelegung

| Befehl                   | Anzeige im Menü                  | Standard |
| ------------------------ | -------------------------------- | -------- |
| `stationcreator_preview` | Station Creator Vorschau beenden | `F6`     |

{% hint style="info" %}
**Benutzeroberfläche:** lifevisuals\_workstations bringt eine Browser-UI mit. Der HTML-Ordner bleibt im Download erhalten und wird von FiveM automatisch geladen — kein Build-Schritt, kein Node.js nötig.
{% endhint %}

### Wenn es nach dem Start hakt

| Prüfen                                  | Ursache                                                                                                                 |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Abhängigkeit lädt nicht                 | Alle unter *Voraussetzungen* genannten Resources müssen vor lifevisuals\_workstations in der `server.cfg` stehen.       |
| Tabellen fehlen                         | Die SQL-Dateien wurden nicht importiert — erneut einspielen: `LifeVisuals_workstationscreator.sql`, `workstations.sql`. |
| Client-Scripts laden nicht              | Der Ordner aus dem Download wurde verändert — vergleiche die Client-Dateien mit dem Original-Stand.                     |
| UI bleibt leer oder Fehler im Chat      | In `config/config.lua` setzen — häufig Rechtschreibfehler in Item- oder Job-Namen.                                      |
| Export-Aufrufe bringen `no such export` | Das aufgerufene System (`hex_4_hud`) lädt nicht — prüfe den Start in der Server-Konsole.                                |

***

Weiter im Kapitel: [Konfiguration](/scripts/items/lifevisuals_workstations/konfiguration.md) — welche Werte du in der Config setzen solltest.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lifev.eu/scripts/items/lifevisuals_workstations/installation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
