Setup
Install and configure Vending Machines.
#Download
Download
zyke_vending.zipfrom the latest release.
#Dependencies
Install zyke_lib and a target resource such as
ox_targetorqb-target, and configure the framework, inventory, and target inzyke_lib. See Dependencies.
#Resource
Place the resource in your server's resources folder as
zyke_vending. Keep the folder name as it is.
#Items & Images
The machines sell items that must exist in your inventory. Copy the matching definitions from
zyke_vending/extras/items/into your inventory:ox_inventory.lua,qb-core.lua, orqs-inventory.lua. Copy the images fromzyke_vending/extras/items/images/into the inventory's image directory.The items are
sprunk,ecola,orango_tang,junk,phatchips_bigcheese,phatchips_habernero,coffee, andmeteorite_bar. Skip the ones your server already has, or change what each machine sells inshared/config.lua.
#Start Order
Start the dependencies before Vending Machines:
cfgensure ox_target ensure zyke_lib ensure zyke_vendingReplace
ox_targetwith your target resource if you use another one.
#Verify Gameplay
Walk up to a vending machine, buy a drink through your target, and check that it lands in your inventory.