Documentation

Setup

Various steps to ensure our script works on your server.

In-depth Guide

You just downloaded our resources and wondering where to get started? This is for you. We will instruct you on how to get it set up for all different types of servers.

#Basic Setup

To get started, follow all of the required steps. We do also heavily recommend you take a look at the optional but recommended steps.

#Download

Download Zyke's Consumables from your CFX portal under Granted Assets. If it is missing from your portal, see Lacking Entitlement.

#Dependencies

Install every required resource and follow its own setup:

Dependencies can be found here: Dependencies.

#Resource

Place the resource in your server's resources folder as zyke_consumables. Keep the folder name as it is.

#Database

All tables are created automatically on the first start, so there is no SQL to import.

#Start Order

Start the dependencies before Consumables:

cfg
ensure oxmysql
ensure ox_lib
ensure zyke_lib
ensure zyke_sounds
ensure zyke_propaligner
ensure zyke_status
ensure zyke_consumables

If you are uncertain, see Resource Starting Sequence.

Want to get started with a few items? First, make sure to add the items to your inventory so they can be recognized.

#Files for items

Copy the matching definitions from zyke_consumables/extras/items/ into your inventory:

  • ox_inventory.lua
  • qb-core.lua
  • qs_inventory.lua

Copy the images from zyke_consumables/extras/items/images/ into the inventory's image directory.

#Imports

When you start the resource you will be prompted by an importing command in the server console. By running the command, you will automatically import a set of base items. This is only available in your server console.

All you have to do after that is activating them, which can also be automatically done via the command that is prompted.

If you know what you are doing, is lazy, or starting a fresh server, you can force activate all of these. This is only available in your server console.

#Migrating Existing Items (Optional)

Coming from ox_inventory, Qbox (qbx_consumables), qb-smallresources or pixel-consumables? Our conversion tools can bring your existing consumables over automatically. See Conversions.

#Bones (Optional)

Visit zyke_consumables/shared/unlocked/bones.lua if you want to modify the available bones. We slimmed it down to avoid confusion when creating items, since most are not used.