QB / ESX

Agency-Vending

Verkaufsautomaten-Skript mit 4 Maschinentypen, automatischer GTA V Prop-Erkennung, Ziffernblock-Benutzeroberfläche, Spieler-Eigentumssystem, Bestandsverwaltung und AgencyPay-Unterstützung.

v1.1.0Paid4 Seiten
Agency-Vending

01 Installation

agency-vending in den resources-Ordner kopieren
ensure agency-vending in server.cfg hinzufügen
installation/database.sql in der Datenbank ausführen
Items je Framework registrieren (ESX/QBCore/ox_inventory)
Inventar-Bilder aus installation/inventory-images/ kopieren
config.lua konfigurieren

Abhängigkeiten

  • oxmysql — erforderlich
  • ESX oder QBCore — optional, unterstützt Standalone
  • ox_target / qb-target — optional
  • agency-phone — optional (für AgencyPay)

SQL Datei

Importiere diese SQL-Datei in deine Datenbank bevor du die Ressource startest:

⬇ vending.sql
-- =============================================
-- Agency Vending - Database Setup
-- =============================================
-- Execute this SQL in your database
-- The tables are required for the player-owned machines system
--
-- NOTE: The tables are also created automatically on first
-- resource start. This SQL is optional for manual setup.
-- =============================================

CREATE TABLE IF NOT EXISTS `agency_vending_machines` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,
    `owner` VARCHAR(50) NOT NULL,
    `type` VARCHAR(50) NOT NULL,
    `coords` TEXT NOT NULL,
    `heading` FLOAT NOT NULL DEFAULT 0,
    `earnings` FLOAT NOT NULL DEFAULT 0
);

CREATE TABLE IF NOT EXISTS `agency_vending_stock` (
    `machine_id` INT NOT NULL,
    `slot` VARCHAR(10) NOT NULL,
    `stock` INT NOT NULL DEFAULT 0,
    `price` FLOAT NOT NULL DEFAULT 0,
    PRIMARY KEY (`machine_id`, `slot`)
);

CREATE TABLE IF NOT EXISTS `agency_vending_spawned` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,
    `type` VARCHAR(50) NOT NULL,
    `model` VARCHAR(100) NOT NULL,
    `coords` TEXT NOT NULL,
    `heading` FLOAT NOT NULL DEFAULT 0,
    `spawned_by` VARCHAR(50) NOT NULL,
    `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

Brauchst du Hilfe? Tritt unserem Discord bei!

Discord beitreten