Agency Docs
QBESXStandalone

Agency-Drugs 安装

FiveM 完整毒品系统,单个脚本即可搞定。首次启动即包含 5 条预设路线:Grapeseed 大麻、Cayo Perico.

v1.0.0付费5 页面自 01.11.2026

01安装

  1. 1将 Agency-Drugs 解压至你的 resources 文件夹
  2. 2在 server.cfg 中添加 ensure Agency-Drugs,放在框架、背包和 oxmysql 之后
  3. 3启动服务器:首次启动时会自动创建数据库表和 5 条默认路线
  4. 4将 install/images 中的物品图片复制到你背包系统的图片文件夹中
  5. 5ox_inventory:将 README 中的物品添加到 ox_inventory/data/items.lua。QBCore 和 QBox 背包在运行时自动获取物品,ESX 请运行 sql/install.sql
  6. 6通过 add_ace group.admin agency.drugs allow 为管理员授予菜单权限
  7. 7在游戏内输入 /drugsadmin 查看路线、平衡价格或从其他毒品脚本导入路线

02依赖项

  • oxmysql(必需)
  • OneSync (必需)
  • QBCore、QBox 或 ESX(可选,没有框架时以独立模式运行)
  • 背包系统(可选:ox_inventory、qb-inventory、ps-inventory、lj-inventory、jpr-inventory 或 qs-inventory,自动识别)
  • Agency Phone 和 Agency Pad(可选,添加 Dealer 应用)
  • Agency Gangs(可选,地盘加成、金库分成及预警)
  • 调度脚本(可选:ps-dispatch、cd_dispatch、tk_dispatch、qs-dispatch 或 core_dispatch,否则使用默认警察标记)
  • Agency-Notify(可选,未启用时使用框架默认通知)
  • Agency-Companion(可选且免费:通过 /app 将脚本与 Agency Companion 应用关联)

03SQL 文件

可选:资源启动时会自动创建这些数据表。只有在手动配置数据库时才需要导入此文件:

-- ===================================================== -- AGENCY DRUGS — optional SQL -- The script creates its own tables on the first start (agency_drugs_*). -- You only need this file on ESX: it adds the default items to the items table. -- QBCore / QBox add the items by themselves at runtime, ox_inventory uses -- the snippet in README.md. -- ===================================================== INSERT IGNORE INTO `items` (`name`, `label`, `weight`) VALUES ('cannabis_leaf', 'Cannabis Leaf', 1), ('coca_leaf', 'Coca Leaf', 1), ('solvent', 'Solvent', 1), ('pseudoephedrine', 'Pseudoephedrine', 1), ('sodium_hydroxide', 'Sodium Hydroxide', 1), ('ammonium_nitrate', 'Ammonium Nitrate', 1), ('ketamine_raw', 'Raw Ketamine', 1), ('codeine', 'Codeine Syrup', 1), ('cherry', 'Cherries', 1), ('weed_bag', 'Weed Bag', 1), ('joint', 'Joint', 1), ('cocaine_bag', 'Cocaine Bag', 1), ('meth_bag', 'Meth Bag', 1), ('ketamine_pill', 'Ketamine Pill', 1), ('lean_cup', 'Lean', 1);

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