Agency Docs
QBESX

Agency-Repairkits इंस्टॉलेशन

पूरा वाहन मरम्मत किट सिस्टम, क्रमिक क्षति के साथ: इंजन का लड़खड़ाना, बंद होना, और गंभीर स्तर पर गाड़ी का चलने लायक न.

v1.0.0सशुल्क4 पेज

01इंस्टॉलेशन

  1. 1Agency-Repairkits को resources फ़ोल्डर में कॉपी करें
  2. 2डेटाबेस में sql/repairkit.sql चलाएँ (वैकल्पिक)
  3. 3server.cfg में ensure Agency-Repairkits जोड़ें
  4. 4फ़्रेमवर्क में agencyrepairkit आइटम जोड़ें
  5. 5repairkit.png को इन्वेंटरी इमेज में कॉपी करें

02निर्भरताएँ

  • कुछ भी आवश्यक नहीं, स्टैंडअलोन चलता है
  • QBCore या ESX (वैकल्पिक)
  • Agency-Notify (वैकल्पिक)

03SQL फ़ाइल

रिसोर्स शुरू करने से पहले इस 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);

इस पेज के बाद भी अटके हैं? आगे हमारा सपोर्ट संभाल लेगा।