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 armor not saving on exit #341

Closed
wants to merge 1 commit into from

Conversation

RojinxChhetri
Copy link

Describe Pull Request
This PR updates the existing hospital:server:SetArmor event to ensure it correctly updates and saves a player's armor metadata in qb-ambulancejob. The update includes proper validation to prevent armor values from dropping below zero and ensures the metadata is saved after modification.

These changes align with the new armor-saving feature in the core framework, ensuring smooth integration and preventing potential data inconsistencies.

This update complements the PR submitted to the core repository for saving player armor when exiting the server. Please merge the core PR first to ensure compatibility.

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all its functionality? [yes]
  • Does your code fit the style guidelines? [yes]
  • Does your PR fit the contribution guidelines? [yes]

@RojinxChhetri
Copy link
Author

Already addressed on PR #343 closing this PR for now.

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.

1 participant