01安装
- 1将 Agency-Blackmarket 放入 resources 目录
- 2将 blackmarket_reputation.sql 导入数据库
- 3在 server.cfg 中加入 ensure Agency-Blackmarket
- 4可选:安装 Agency-Notify 与 Agency-Progressbar
02依赖项
QBCore 或 ESX(自动识别)Agency-Notify(可选)Agency-Progressbar(可选)qb-target(可选)
03SQL 文件
在启动资源之前,将此SQL文件导入数据库:
-- Agency-Blackmarket Reputation System Database Table
-- Import this file into your MySQL database to create the required table
CREATE TABLE IF NOT EXISTS `blackmarket_reputation` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`citizenid` VARCHAR(50) NOT NULL UNIQUE,
`reputation` INT DEFAULT 0,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
INDEX `idx_citizenid` (`citizenid`),
INDEX `idx_reputation` (`reputation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Optional: Insert some test data
-- INSERT INTO `blackmarket_reputation` (`citizenid`, `reputation`) VALUES
-- ('TEST12345', 50),
-- ('TEST67890', 100);
