Skip to content

Conversation

@sjdawson
Copy link

@sjdawson sjdawson commented Mar 30, 2025

Fixes #293, fixes #455

Also fixes qb-ambulancejob/308

Sat and traced this back to it incorrectly trying to call a server event with a client method. This will now update the players armor metadata value correctly when they first use armor.

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

Copy link
Contributor

@Z3rio Z3rio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this has really been tested ingame, and it works (with the metadata), then it looks good to me.
I was just personally unsure whether the source value really gets added to the hospital:server:SetArmor event when triggered from another server event.
(Aka, going client -> server -> server)

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.

[BUG] Armor doesnt Save on F8 Quit [BUG] Armor not updating on loading in [BUG] Armor not saving?

3 participants