Agency Docs
QBESX

Agency-Repairkits 安装

车辆维修工具包系统,具有渐进式损坏等级、引擎抖动、故障状态、现代UI和管理员命令。支持独立运行或与QBCore/ESX配合使用。

v1.0.0付费4 页面

01安装

  1. 1将 Agency-Repairkits 复制到 resources 文件夹
  2. 2在数据库中执行 sql/repairkit.sql(可选)
  3. 3在 server.cfg 中加入 ensure Agency-Repairkits
  4. 4在框架中添加 agencyrepairkit 物品
  5. 5将 repairkit.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);

看完本页仍未解决?接下来由我们的支持团队接手。