You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the latest update of qb-inventory, item-specific information (e.g., for idcard) is no longer displayed correctly. The previous method of adding custom if statements in app.js doesn't work as expected.
Reproduction
Open the inventory in-game.
Hover over an item like idcard or syphoningkit.
Notice that the item-specific information (e.g., gas amount for syphoningkit) is not displayed. Idont know how can i setup it ? !!!!
Expected behavior
.
Actual behavior
.
Additional context
In previous versions, the following code worked to} else if (itemData.name == "syphoningkit") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p>" + "A kit used to syphon gasoline from vehicles! <br><br>" + itemData.info.gasamount + " Liters Inside.</p>" +
"</span></p><p style=\"padding-top: .8vh;font-size:11px\"><b>Weight: </b>" + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + " | <b>Amount: </b> " + itemData.amount
);
}
Since the update, this approach no longer works as expected. I am unsure where exactly to place this in the updated app.js file.
Could you please advise on the correct location or method for adding custom item information display logic in the latest version?
display item details
Last Updated
today
Custom Resources
nah , im not using custon resources / i download it from qbcoreframwork github page
Resource Rename
qb-inventory
The text was updated successfully, but these errors were encountered:
Summary
After the latest update of qb-inventory, item-specific information (e.g., for idcard) is no longer displayed correctly. The previous method of adding custom if statements in app.js doesn't work as expected.
Reproduction
Expected behavior
.
Actual behavior
.
Additional context
Since the update, this approach no longer works as expected. I am unsure where exactly to place this in the updated app.js file.
Could you please advise on the correct location or method for adding custom item information display logic in the latest version?
display item details
Last Updated
today
Custom Resources
nah , im not using custon resources / i download it from qbcoreframwork github page
Resource Rename
qb-inventory
The text was updated successfully, but these errors were encountered: