


Was this page helpful?
| Dependency | Notes |
|---|---|
| ox_lib | Required — TextUI, notifications |
| ox_inventory | Recommended — item handling and weight checks |
| ox_target | Optional — prop interaction (or use proximity mode) |
| ESX / QBCore / OX Core | One framework required |
| OneSync | Required |
Download mbt_drink_machine from the MBT Store.
Place it keeping the exact resource name:
resources/
└── [mbt]/
└── mbt_drink_machine/
├── bridge/
├── core/
├── utils/
├── web/
├── config.lua
└── fxmanifest.luaAdd the following items to your ox_inventory items file:
['vendingmachine'] = {
label = 'Vending Machine',
weight = 8000,
stack = false,
close = true,
},
['cola'] = {
label = 'Cola',
weight = 300,
stack = true,
},
['sprite'] = {
label = 'Sprite',
weight = 300,
Open config.lua and set MBT.UseTarget:
MBT.UseTarget = true -- use ox_target or qb-target (recommended)
MBT.UseTarget = false -- use proximity detection + E key (no target script needed)If using ox_target (default): the setupTarget handler in config.lua is already configured. Make sure ox_target is running.
If using qb-target: comment out the block in and uncomment the block.
In config.lua, set the correct flags for your setup:
MBT.ESXLegacy = true -- true for ESX Legacy, false for old ESX
MBT.CustomFramework = false -- true only for OX Core (standalone)| Setup | ESXLegacy | CustomFramework |
|---|---|---|
| ESX Legacy | true | false |
| ESX (old) | |
ensure ox_lib
ensure ox_inventory
ensure ox_target # only if UseTarget = true
ensure mbt_drink_machineApproach any prop_vend_soda_02 in the world (e.g. near convenience stores). You should see:
To test the deployable machine, give yourself the item:
/giveitem [playerid] vendingmachine 1Use it — the machine should spawn in front of you with move/repack options via ox_target.
Item names must match exactly what is set in MBT.Drinks in config.lua. The vendingmachine item name must match MBT.ItemName.
ox_targetMBT.SetupTargetqb-targetIf using proximity mode (UseTarget = false): no target script required. Players press E near the machine.
false |
| QBCore | false | false |
| OX Core | false | true |