QB / ESX

Agency-Repairkits

Fahrzeugreparaturkit-System mit progressiven Schadensstufen, Motorstottern, Ausfallzuständen, moderner Benutzeroberfläche und Admin-Befehlen. Funktioniert standalone oder mit QBCore/ESX.

v1.0.0Paid4 Seiten
Agency-Repairkits

01 Installation

Agency-Repairkits in den resources-Ordner kopieren
sql/repairkit.sql in der Datenbank ausführen (optional)
ensure Agency-Repairkits in server.cfg hinzufügen
agencyrepairkit-Item zum Framework hinzufügen
repairkit.png in die Inventar-Bilder kopieren

Abhängigkeiten

  • Nichts erforderlich — funktioniert Standalone
  • QBCore oder ESX — optional
  • Agency-Notify — optional

SQL Datei

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

⬇ repairkit.sql
-- Repair Kit System Database Schema
-- Compatible with both QB-Core and ESX frameworks

-- Table for tracking vehicle damage states (optional)
CREATE TABLE IF NOT EXISTS `vehicle_damage` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `plate` varchar(20) NOT NULL,
    `engine_health` float DEFAULT 1000.0,
    `body_health` float DEFAULT 1000.0,
    `last_updated` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    `owner` varchar(50) DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `plate` (`plate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- Table for repair kit usage logs (optional)
CREATE TABLE IF NOT EXISTS `repairkit_logs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `player_id` varchar(50) NOT NULL,
    `player_name` varchar(100) NOT NULL,
    `vehicle_plate` varchar(20) NOT NULL,
    `vehicle_model` varchar(50) DEFAULT NULL,
    `engine_health_before` float DEFAULT NULL,
    `body_health_before` float DEFAULT NULL,
    `repair_time` timestamp DEFAULT CURRENT_TIMESTAMP,
    `location` varchar(100) DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `player_id` (`player_id`),
    KEY `repair_time` (`repair_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- Insert repair kit item for QB-Core (if using qb-core items table)
-- INSERT IGNORE INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) 
-- VALUES ('repairkit', 'Fahrzeug Reparaturkit', 500, 0, 1);

-- Insert repair kit item for ESX (if using esx items table)
-- INSERT IGNORE INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) 
-- VALUES ('repairkit', 'Fahrzeug Reparaturkit', 5, 0, 1);

Brauchst du Hilfe? Tritt unserem Discord bei!

Discord beitreten