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:
-
Outdated or Incorrect Version: Ensure that you are using a compatible version of
ps-inventory
that includes theLoadInventory
export. Check for updates or compatibility notes from the script developer. -
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
). -
Dependency Issues: Some inventory systems rely on other resources, such as
oxmysql
orqb-core
. Make sure all dependencies are installed and up to date. -
Export Name Changes: In some custom versions of
ps-inventory
, theLoadInventory
function might be renamed or implemented differently. You can verify this by reviewing theps-inventory
files to see ifLoadInventory
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.