Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Issue with Displaying Specific Item Information After qb-inventory Update #619

Open
Tlauros opened this issue Feb 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Tlauros
Copy link

Tlauros commented Feb 15, 2025

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

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

@Tlauros Tlauros added the bug Something isn't working label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant