Ps-inventory not working, using QB

It looks like you’re encountering an error with the ps-inventory script in QBCore for FiveM. The specific error in your screenshot states:

SCRIPT ERROR: @qb-core/server/player.lua:158: No such export LoadInventory in resource ps-inventory

This usually means that the LoadInventory export function is not available in ps-inventory, which may be due to one of the following issues:

  1. Outdated or Incorrect Version: Ensure that you are using a compatible version of ps-inventory that includes the LoadInventory export. Check for updates or compatibility notes from the script developer.

  2. Improper Installation: Double-check that ps-inventory is properly installed and configured. Make sure the resource is loaded correctly in your server configuration file (server.cfg).

  3. Dependency Issues: Some inventory systems rely on other resources, such as oxmysql or qb-core. Make sure all dependencies are installed and up to date.

  4. Export Name Changes: In some custom versions of ps-inventory, the LoadInventory function might be renamed or implemented differently. You can verify this by reviewing the ps-inventory files to see if LoadInventory exists as an export or is defined elsewhere.

If you still encounter issues, let me know and I can guide you through additional troubleshooting steps.