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

fix(server/functions): handle nil player names and fallback to citizenid #597

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DaniGP17
Copy link

Description

I've been having several clients reporting that qb-inventory was giving an error when using the LoadInventory export with offline players that had items that didn't exist, my script uses a lot of functions related to offline players and I've been getting the same problem several times, I've made it so that if the source is not defined the citizenid is used.

More Info

Screenshot of the error some customers send to me:
image

Checklist

  • I have personally loaded this code into an updated qbcore project and checked all of its functionality.
  • My code fits the style guidelines.
  • My PR fits the contribution guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants