qb-inventory

Inventory Installation

Go to your lj/qb-inventory > html > js > app.js (EARLIER VERSION BELOW THIS BLOCK)

  1. Search for the following code block:

lj/qb-inventory > html > js > app.js
case "harness":
  1. Add the following code block directly underneath the code block in Step 1:

lj/qb-inventory > html > js > app.js
case "joint":
case "weedbaggie":
case "femaleseed":
	return `<p><strong>Strain: </strong>${itemData.info.strain}.</p>`
case "weedpackage":
case "driedbud":
	return `<p><strong>Strain: </strong>${itemData.info.strain}</span></p><p><strong>Remaining Weights: </strong><span>${itemData.info.remainweight} grams.</p>`
case "wetbud":
	return `<p><strong>Strain: </strong><span>${itemData.info.strain}</span></p><p><strong>Dry: </strong><span>${itemData.info.dry}%.</p>`
case "wateringcan":
	return `<p><strong>Water: </strong>${itemData.info.water}%.</p>`

Go to your lj/qb-inventory > html > js > app.js

  1. Search for the following code block:

  1. Add the following code block directly underneath the code block in Step 1:

lj/qb-inventory > html > js > app.js (outdated but should give you the idea)

Go to your lj/qb-inventory > server > main.lua

  1. Search for the following code:

  2. Add the following code after the whole function:

lj/qb-inventory > server > main.lua
  1. Search for the following code:

  2. Right before

  3. Add:


  1. Search for the following code:

  2. Add this BEFORE that line:

Adding checkDry (2 times)
  1. Search for the following code:

  1. Right before:

  1. Add:

  1. (OPTIONAL) If you want weed to also dry in trunk, player or glove trunk, repeat the same process

Last updated

Was this helpful?