Go to your lj/qb-inventory > html > js > app.js (EARLIER VERSION BELOW THIS BLOCK)
lj/qb-inventory > html > js > app.js
Copy case "harness" :
lj/qb-inventory > html > js > app.js
Copy 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
lj/qb-inventory > html > js > app.js
Copy } else if ( itemData .name == "harness" ) {
lj/qb-inventory > html > js > app.js
Copy } else if ( itemData .name == "joint" ) {
$ ( ".item-info-title" ) .html ( "<p>" + itemData .label + "</p>" );
$ ( ".item-info-description" ) .html (
"<p><strong>Strain: </strong>" + itemData . info .strain + ".</p>"
);
} else if ( itemData .name == "weedbaggie" ) {
$ ( ".item-info-title" ) .html ( "<p>" + itemData .label + "</p>" );
$ ( ".item-info-description" ) .html (
"<p><strong>Strain: </strong>" + itemData . info .strain + ".</p>"
);
} else if ( itemData .name == "femaleseed" ) {
$ ( ".item-info-title" ) .html ( "<p>" + itemData .label + "</p>" );
$ ( ".item-info-description" ) .html (
"<p><strong>Strain: </strong>" + itemData . info .strain + ".</p>"
);
} else if ( itemData .name == "weedpackage" ) {
$ ( ".item-info-title" ) .html ( "<p>" + itemData .label + "</p>" );
$ ( ".item-info-description" ) .html (
"<p><strong>Strain: </strong>" + itemData . info .strain +
"</span></p><p><strong>Remain Weights: </strong><span>" +
itemData . info .remainweight + " grams.</p>"
);
} else if ( itemData .name == "driedbud" ) {
$ ( ".item-info-title" ) .html ( "<p>" + itemData .label + "</p>" );
$ ( ".item-info-description" ) .html (
"<p><strong>Strain: </strong>" + itemData . info .strain +
"</span></p><p><strong>Remain Weights: </strong><span>" +
itemData . info .remainweight + " grams.</p>"
);
} else if ( itemData .name == "wetbud" ) {
$ ( ".item-info-title" ) .html ( "<p>" + itemData .label + "</p>" );
$ ( ".item-info-description" ) .html (
"<p><strong>Strain: </strong><span>" +
itemData . info .strain +
"</span></p><p><strong>Dry: </strong><span>" +
itemData . info .dry + "%.</p>"
);
} else if ( itemData .name == "wateringcan" ) {
$ ( ".item-info-title" ) .html ( "<p>" + itemData .label + "</p>" );
$ ( ".item-info-description" ) .html (
"<p><strong>Water: </strong>" + itemData . info .water + "%.</p>"
);}
Go to your lj/qb-inventory > server > main.lua
Copy local function AddToStash ( stashId , slot , otherslot , itemName , amount , info , created )
Copy local ItemData = QBCore.Shared.Items[itemName]
Copy if itemName == "wetbud" then
if not info then
info = {}
info.time = os.time ()
info.dry = 0
else
if not info.time then info.time = os.time () end
if not info.dry then info.dry = 0 end
end
end