
一个简单且可配置的FiveM自动售货机资源。
**GScripts Vending Machine**允许玩家从GTA V中已放置的售货机道具处购买物品。每个机器配置文件都可以有自己的产品、价格、菜单标题和道具模型。
该资源专为希望实现干净售货交互而不需要不必要的商业系统、数据库或复杂设置的伺服器设计。
https://imagepaste.org/i/bzsbcngu.gif
功能特性
* ESX和QBCore框架适配器
* ox_inventory和qb-inventory适配器
* ox_target和qb-target支持
* 内置3D文本交互
* 自动框架、库存和交互检测
* 分别为饮料、零食、咖啡和自定义机器的目录
* 支持默认GTA V道具和自定义道具模型
* 每台机器的多人锁定
* 相邻放置的售货机分别处理
* 购买延迟以防止物品轰炸
* 服务器端产品、价格、资金、库存容量、购买和锁定验证
* 复古和干净的菜单主题
* 鼠标和键盘菜单控制
* 无需SQL
配置
机器类型分别配置。每个配置文件都可以有自己的模型、菜单标题、产品和价格。
Summary
配置示例
Config.MachineTypes = {
drinks = {
label = 'Soda Vending',
models = {
`prop_vend_soda_01`,
`prop_vend_soda_02`
},
products = {
{
item = 'ecola',
label = 'eCola',
price = 8,
enabled = true
},
{
item = 'sprunk',
label = 'Sprunk',
price = 5,
enabled = true
},
{
item = 'fizzazz',
label = 'FizzAzz',
price = 6,
enabled = false
}
}
},}
}
伺服器管理员可以:
* 添加或删除产品
* 使用他们库存中已注册的物品
* 更改产品名称和价格
* 禁用单个产品
* 创建新的机器配置文件
* 添加默认或自定义道具模型
* 更改交互和提示距离
* 更改交互键
* 更改提示文本、位置、大小和颜色
* 选择3D文本、ox_target或qb-target
* 更改购买和机器锁定时间
* 选择复古或干净菜单主题
* 将菜单移动到四个屏幕位置之一
交互
该资源包括三种交互方法:
* 内置3D文本,带可配置键
* ox_target
* qb-target
当自动模式启用时,资源会首先查找ox_target,然后是qb-target。如果这两个目标资源都没有运行,它会回退到内置的3D文本交互。
提示距离和实际交互距离都是可配置的。这使得玩家可以在更远的地方注意到售货机,同时仍然需要站得足够近才能使用它。
界面
包括两种菜单样式:
* **复古** – 一种怀旧的GTA风格替代方案
* **简洁** – 现代伺服器的默认中性风格
菜单可以放置在四个屏幕位置中的任意一个。
玩家可以使用鼠标或键盘来导航菜单。它支持箭头键、Enter、Escape、Backspace和右键关闭。
复古 & 简单菜单
https://imagepaste.org/i/5yhg6y6c.png
https://imagepaste.org/i/c2u7n6g9.png
机器配置文件
饮料、零食和咖啡默认使用单独的配置文件。
这意味着咖啡机只能提供咖啡产品,而旁边的汽水机则显示完全不同的目录。
伺服器管理员可以编辑包含的配置文件或创建具有自己模型和产品的额外机器类型。
兼容性
| 框架 | 库存 | 状态 |
|---|---|---|
| ESX | ox_inventory | 已测试 |
| QBCore | ox_inventory | 适配器包含 |
| QBCore | qb-inventory | 适配器包含 |
初始运行时测试是在ESX和ox_inventory上完成的。
包含的QBCore适配器已根据其记录的API实现,但尚未在QBCore伺服器上完成完整的运行时测试。
qb-inventory需要QBCore框架适配器。目标资源是可选的,因为资源包含自己的3D文本交互。
性能
* [IDLE]
* [靠近带有3D文本的售货机]
* [目标交互]
性能可能因伺服器配置、安装的资源以及选择的交互方法而异。
安装
- 下载gs_vending。
- 将`gs_vending`文件夹放入您的资源目录中。
- 确认每个启用的产品都存在于您的库存中。
- 配置框架、库存、交互方法、产品和机器配置文件。
- 在`server.cfg`中添加`ensure gs_vending`。
- 重启服务器。
确保选择的框架和库存资源在`gs_vending`之前启动。
完整的安装和配置说明包含在README中。
下载
Tebex — 免费
[下载Glock Vending Machine](https://gscripts.tebex.store/)
支持
需要帮助安装或配置资源?
Discord – [JOIN]
Discord提供安装帮助、配置问题和错误报告。加入Discord伺服器不是下载或使用资源所必需的。
资源信息
| 代码可访问 | 是 |
| 订阅 | 否 |
| 大约行数 | 1500 |
| 框架 | ESX 或 QBCore |
| 库存 | ox_inventory或qb-inventory |
| 可选交互 | ox_target或qb-target |
| 需要SQL | 否 |
| 支持 | Discord |
| 许可证 | MIT |
查看英文原文 (Original)

A simple and configurable vending machine resource for FiveM.
**GScripts Vending Machine** allows players to purchase items from the vending machine props already placed around GTA V. Each machine profile can have its own products, prices, menu title, and prop models.
The resource is designed for servers that want a clean vending interaction without unnecessary business systems, databases, or complicated setup.
https://imagepaste.org/i/bzsbcngu.gif
Features
* ESX and QBCore framework adapters
* ox_inventory and qb-inventory adapters
* ox_target and qb-target support
* Built in 3D text interaction
* Automatic framework, inventory, and interaction detection
* Separate catalogs for drinks, snacks, coffee, and custom machines
* Support for default GTA V props and custom prop models
* Per-machine multiplayer locking
* Separate handling for vending machines placed beside each other
* Purchase delay to prevent item spam
* Server side product, price, funds, inventory capacity, purchase, and lock validation
* Retro and clean menu themes
* Mouse and keyboard menu controls
* No SQL required
Configuration
Machine types are configured separately. Every profile can have its own models, menu title, products, and prices.
Summary
Configuration example
Config.MachineTypes = {
drinks = {
label = 'Soda Vending',
models = {
`prop_vend_soda_01`,
`prop_vend_soda_02`
},
products = {
{
item = 'ecola',
label = 'eCola',
price = 8,
enabled = true
},
{
item = 'sprunk',
label = 'Sprunk',
price = 5,
enabled = true
},
{
item = 'fizzazz',
label = 'FizzAzz',
price = 6,
enabled = false
}
}
},}
}
Server owners can:
* Add or remove products
* Use items already registered in their inventory
* Change product names and prices
* Disable individual products
* Create new machine profiles
* Add default or custom prop models
* Change interaction and prompt distances
* Change the interaction key
* Change prompt text, position, size, and color
* Select 3D text, ox_target, or qb-target
* Change purchase and machine-lock timings
* Select the retro or clean menu theme
* Move the menu between four screen positions
Interaction
The resource includes three interaction methods:
* Built-in 3D text with a configurable key
* ox_target
* qb-target
When automatic mode is enabled, the resource looks for ox_target first, followed by qb-target. If neither target resource is running, it falls back to the included 3D text interaction.
Both the prompt distance and the actual interaction distance are configurable. This allows players to notice a vending machine from farther away while still requiring them to stand close enough to use it.
Interface
Two menu styles are included:
* **Retro** – a nostalgic GTA-inspired alternative
* **Clean** – the default neutral style for modern servers
The menu can be placed in any of four screen positions.
Players can use the mouse or keyboard to navigate the menu. It supports the arrow keys, Enter, Escape, Backspace, and right-click closing.
Retro & Simple Menu
https://imagepaste.org/i/5yhg6y6c.png
https://imagepaste.org/i/c2u7n6g9.png
Machine Profiles
Drinks, snacks, and coffee use separate profiles by default.
This means that a coffee machine can offer only coffee products while a soda machine beside it displays a completely different catalog.
Server owners can edit the included profiles or create additional machine types with their own models and products.
Compatibility
| Framework | Inventory | Status |
|---|---|---|
| ESX | ox_inventory | Tested |
| QBCore | ox_inventory | Adapter included |
| QBCore | qb-inventory | Adapter included |
The initial runtime testing was completed with ESX and ox_inventory.
The included QBCore adapters have been implemented against their documented APIs but have not yet completed full runtime testing on a QBCore server.
qb-inventory requires the QBCore framework adapter. Target resources are optional because the resource includes its own 3D text interaction.
Performance
* [IDLE]
* [Near a vending machine with 3D text]
* [Target interaction]
Performance can vary depending on the server configuration, installed resources, and selected interaction method.
Installation
- Download gs_vending.
- Place the `gs_vending` folder inside your resources directory.
- Confirm that every enabled product exists in your inventory.
- Configure the framework, inventory, interaction method, products, and machine profiles.
- Add `ensure gs_vending` to `server.cfg`.
- Restart the server.
Make sure the selected framework and inventory resources start before `gs_vending`.
Full installation and configuration instructions are included in the README.
Download
Tebex — Free
[Download Glock Vending Machine](https://gscripts.tebex.store/)
Support
Need help installing or configuring the resource?
Discord – [JOIN]
Discord is provided for installation help, configuration questions, and bug reports. Joining the Discord server is not required to download or use the resource.
Resource Information
| Code accessible | Yes |
| Subscription | No |
| Approximate lines | 1500 |
| Framework | ESX or QBCore |
| Inventory | ox_inventory or qb-inventory |
| Optional interaction | ox_target or qb-target |
| SQL required | No |
| Support | Discord |
| License | MIT |
本文资源搬运自 CFX.re FiveM 官方论坛,原作者:GlockScripts。原帖地址:https://forum.cfx.re/t/free-esx-qbcore-gs-vending-configurable-vending-machines/5434047
![[免费] [ESX/QBCore] GS售货机 | 可配置的售货机-Fivem论坛](http://f.sihuai.icu/wp-content/uploads/2026/03/logo图标1.png)


![[插件按键对应编号][按键修改][键位查询]-Fivem论坛](http://f.sihuai.icu/wp-content/uploads/2026/03/d63f0844e220260306091608-scaled.png)

![[免费] WG Banking — 实体 ATM 屏幕显示,真实借记卡,完善的 SQL | QBox · QBCore · ESX-Fivem论坛](https://forum-cfx-re.akamaized.net/original/5X/5/5/e/a/55ea691f13ad0f2545afeec1ce334a806d08d20d.jpeg)
![[免费] 指纹扫描仪-Fivem论坛](https://forum-cfx-re.akamaized.net/original/5X/1/a/b/f/1abfb21417d58052e3af9a9a2c8a254821f2f058.jpeg)
![[免费] 3D GPS 带状指示器 & 路标信标-Fivem论坛](https://f.sihuai.icu/wp-content/uploads/2026/10/f61e4aeda720261019215155-800x450.jpeg)
![[ESX/QB-Core/Standalone] 传呼系统 (3D模型动画)-Fivem论坛](https://forum-cfx-re.akamaized.net/original/5X/b/0/0/d/b00db1803cc0f74ae22a17ac5c129d6be72b04f0.gif)
![[免费] Bob Mulet Luxury | MLO [免费]-Fivem论坛](https://forum-cfx-re.akamaized.net/original/5X/2/7/1/8/2718655d302d787f9ef4c36893d74d6812542b11.jpeg)
![[免费] El Gordo Lighthouse MLO-Fivem论坛](https://f.sihuai.icu/wp-content/uploads/2026/11/ce10679cd520261102203449-800x450.jpeg)

![[MLO] 车库与藏身处 [免费]-Fivem论坛](https://f.sihuai.icu/wp-content/uploads/2026/11/0fb3171ffa20261104203352-800x450.jpeg)
![[免费] Zyke’s 高级粉碎机 (FiveM, 同步, 自定义道具, 声音, 交互)-Fivem论坛](https://forum-cfx-re.akamaized.net/original/5X/b/e/0/a/be0a64b2a67ece57ad3e8230430b1333e174fdd7.gif)
![[免费] FiveM 狗狗散步脚本 | 狗狗散步工作与日托中心 | ESX, QBCore, QBX-Fivem论坛](https://forum-cfx-re.akamaized.net/original/5X/6/0/e/e/60ee47d4ad87758b0f288c94362e880253075aef.gif)
![[免费] 暂停菜单 | QBCore & Qbox | OchiDev-Fivem论坛](https://f.sihuai.icu/wp-content/uploads/2026/11/edd943b79820261104203632-800x424.jpeg)
![[免费] MZ Drugs Creator | 为 FiveM 定制的全功能药物系统-Fivem论坛](https://f.sihuai.icu/wp-content/uploads/2026/11/8e98e2799e20261104203651-800x450.jpeg)
![[免费] RD Fuel V1.0 – 拥有真实个性的加油站服务员-Fivem论坛](https://f.sihuai.icu/wp-content/uploads/2026/11/72a7e95eae20261104203755-800x450.jpeg)

暂无评论内容