ACVendingMachines
Server-side vending machines with full ox_target + ox_inventory integration. No client trust, no exploits.
Stock GTA vending lets you press E and drink for free. Most paid vending scripts trust the client to validate payment, so a tampered client can grant items without paying. ACVendingMachines closes both gaps with server-side payment and server-side item grants — every transaction is validated end-to-end.
Replaces vanilla interactions with ox_target zones around real machine props. Players target the machine, pay via QBCore cash or card, and the item lands in their inventory through ox_inventory. Clean, secure, exploit-proof.
What's in the box
ox_targetzones — snack, soda, coffee, all configurable on real vending props- Server-side payment validation — cash + bank account via QBCore, validated end-to-end
- Server-side item grant — items issued through
ox_inventoryafter payment confirms - Per-machine item mapping — different machines sell different items, fully configurable
- Multi-machine per location — place as many as you need at any coords
- Cooldown anti-spam — per-machine cooldown to prevent rapid-fire abuse
- Discord webhook logging — every purchase logged with player + item + amount
- Custom prop support — works with any vending model you point it at
- Configurable price per item — each item priced independently in config
- Notification system integration —
ox_lib·jc_noty·qbsupported out of the box
Compatibility
| Framework | Tested |
|---|---|
| QBCore | ✓ |
Game build: 2189+
Dependencies: qb-core, ox_lib, ox_target, ox_inventory
Quick install
- Drop into
resources/[standalone]/AC-vendingmachines/ - Add
ensure AC-vendingmachinestoserver.cfg - Open
config.luaand customise machine locations, items per type, prices, cooldowns - Add the items used in the config to your
ox_inventory/data/items.luaif not already present - Restart the server
Deeper guides (Custom prop targeting, Item mapping, Troubleshooting) will land soon.
