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 AddItem putting a string into the created date field when giving starter items #247

Conversation

Jamesking56
Copy link

Describe Pull request
Fixes starter items putting in a string in the created date field, causing inventories to crash in game when being read from the database.

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all it's functionality? Yes
  • Does your code fit the style guidelines? Yes
  • Does your PR fit the contribution guidelines? Yes

@Jamesking56
Copy link
Author

This only applies for ps-inventory. apologies.

@Sanriku-Gaming
Copy link

Yea, this is a local change for you, not for the framework. qb-inventory doesn't have a created date.
function AddItem(identifier, item, amount, slot, info, reason)

@Jamesking56 Jamesking56 deleted the fix-starter-items-inventory branch July 22, 2024 13:59
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