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_target zones — 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_inventory after 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 integrationox_lib · jc_noty · qb supported out of the box

Compatibility

FrameworkTested
QBCore

Game build: 2189+ Dependencies: qb-core, ox_lib, ox_target, ox_inventory

Quick install

  1. Drop into resources/[standalone]/AC-vendingmachines/
  2. Add ensure AC-vendingmachines to server.cfg
  3. Open config.lua and customise machine locations, items per type, prices, cooldowns
  4. Add the items used in the config to your ox_inventory/data/items.lua if not already present
  5. Restart the server
Documentation in progress

Deeper guides (Custom prop targeting, Item mapping, Troubleshooting) will land soon.