Agency Docs
QBESXStandalone

Agency-Housing Installation

Datenbankgestütztes Housing-System für FiveM.

v1.1.0Bezahlt5 Seiten

01Installation

  1. 1Agency-Housing in den resources-Ordner entpacken
  2. 2PolyZone installieren, falls noch nicht vorhanden
  3. 3ensure PolyZone und ensure Agency-Housing in die server.cfg eintragen, nach oxmysql
  4. 4Server starten: Die Datenbanktabellen werden beim ersten Start angelegt
  5. 5Konsole prüfen: Sie nennt das erkannte Framework oder meldet Running standalone
  6. 6Optional: add_ace group.admin agency.housing allow gibt Zugriff auf den Creator
  7. 7Standalone: Config.Standalone für Geld und Admins ausfüllen (siehe Config-Seite)
  8. 8Update von 1.0: Ersetze den kompletten Ordner, übernimm deine Werte in die neue config.lua und starte die Resource einmal neu. Die Datenbank aktualisiert sich selbst.
  9. 9Führe nach einem Update einmal /ahousethumbs als Admin aus, um Vorschaubilder für die neuen Möbel zu erstellen.

02Abhängigkeiten

  • oxmysql (erforderlich)
  • PolyZone (erforderlich, die Grundstücksgrenzen bauen darauf auf)
  • QBCore, QBox oder ESX (optional, ohne Framework läuft es standalone)
  • Ein Inventar für das Lager (optional: ox_inventory, qb-inventory, qs, ps, lj oder jpr)
  • illenium-appearance oder qb-clothing (optional, sonst greift der eingebaute Kleiderschrank)
  • Ein Garagen-Script (optional: Agency-Garage, jg-advancedgarages oder qb-garages, wird automatisch gefunden)
  • Ein Smartphone für die Housing-App (optional: Agency Phone, Agency Pad, lb-phone oder qs-smartphone-pro)

03SQL Datei

Optional: Die Resource legt diese Tabellen beim Start selbst an. Importiere die Datei nur, wenn du die Datenbank von Hand einrichtest:

-- ===================================================== -- Agency Housing: database tables -- ===================================================== -- -- Optional. Agency-Housing creates all of these on start and adds any column an -- older database is missing, so a fresh server needs no import. Run this by -- hand only if your database user is not allowed to create tables. -- -- Safe to run more than once: CREATE TABLE IF NOT EXISTS leaves an existing -- table and its data alone. Works on MariaDB and MySQL 8. -- -- If you changed Config.TableName, change `agency_houses` below to match. -- Houses, their owners, keys and everything placed in them. CREATE TABLE IF NOT EXISTS `agency_houses` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(100) NOT NULL, `shell` VARCHAR(64) NOT NULL, `price` INT NOT NULL DEFAULT 0, `entrance` LONGTEXT NOT NULL, `interior` LONGTEXT DEFAULT NULL, `owner` VARCHAR(80) DEFAULT NULL, `owner_name` VARCHAR(100) DEFAULT NULL, `locked` TINYINT(1) NOT NULL DEFAULT 1, `for_sale` TINYINT(1) NOT NULL DEFAULT 1, `show_blip` TINYINT(1) NOT NULL DEFAULT 1, `keys` LONGTEXT DEFAULT NULL, `created_by` VARCHAR(100) DEFAULT NULL, `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `garage` LONGTEXT DEFAULT NULL, `exit_point` LONGTEXT DEFAULT NULL, `stash_point` LONGTEXT DEFAULT NULL, `wardrobe_point` LONGTEXT DEFAULT NULL, `zone` LONGTEXT DEFAULT NULL, `kind` VARCHAR(16) NOT NULL DEFAULT 'interior', `furniture` LONGTEXT DEFAULT NULL, `upgrades` LONGTEXT DEFAULT NULL, `cameras` LONGTEXT DEFAULT NULL, `doors` LONGTEXT DEFAULT NULL, `blip` LONGTEXT DEFAULT NULL, PRIMARY KEY (`id`), KEY `owner` (`owner`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- Who disconnected inside which house, so they are put back on rejoin. CREATE TABLE IF NOT EXISTS `agency_house_inside` ( `identifier` VARCHAR(80) NOT NULL, `house_id` INT NOT NULL, `since` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`identifier`), KEY `house_id` (`house_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- Outfits of the built-in wardrobe. CREATE TABLE IF NOT EXISTS `agency_house_outfits` ( `id` INT NOT NULL AUTO_INCREMENT, `identifier` VARCHAR(80) NOT NULL, `name` VARCHAR(40) NOT NULL, `model` INT NOT NULL, `data` LONGTEXT NOT NULL, `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `identifier` (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- Agency Companion app: this server's id and the linked phones. CREATE TABLE IF NOT EXISTS `agency_housing_cmp_meta` ( `k` VARCHAR(64) NOT NULL PRIMARY KEY, `v` TEXT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `agency_housing_cmp_devices` ( `id` INT NOT NULL AUTO_INCREMENT, `identifier` VARCHAR(60) NOT NULL, `player_name` VARCHAR(80) DEFAULT NULL, `token_hash` CHAR(64) NOT NULL, `device_name` VARCHAR(64) DEFAULT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_seen` TIMESTAMP NULL DEFAULT NULL, `revoked` TINYINT(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `token_hash` (`token_hash`), KEY `identifier` (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Kommst du nach dieser Seite nicht weiter? Dann übernimmt unser Support.