Documentation

Setup

Install and configure Vending Machines.

#Download

Download zyke_vending.zip from the latest release.

#Dependencies

Install zyke_lib and a target resource such as ox_target or qb-target, and configure the framework, inventory, and target in zyke_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, or qs-inventory.lua. Copy the images from zyke_vending/extras/items/images/ into the inventory's image directory.

The items are sprunk, ecola, orango_tang, junk, phatchips_bigcheese, phatchips_habernero, coffee, and meteorite_bar. Skip the ones your server already has, or change what each machine sells in shared/config.lua.

#Configuration

Edit shared/config.lua. Review the machines, what they sell, and the prices. Use the Config reference for the current defaults.

#Start Order

Start the dependencies before Vending Machines:

cfg
ensure ox_target
ensure zyke_lib
ensure zyke_vending

Replace ox_target with 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.