forked from citizenfx/fivem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(game/five): sync ped inventory on update
In the base game the CPedInventoryDataNode is defined as MIGRATE_NODE. I.e. is it synced on creation and when owner is changed. However in onesync we don't support the migration event currently. This leads to inventory data being lost when ped owner is changed. E.g. peds loose their weapon when players moves too far away and then returns. Update the inventory node synchronisation flags to make it sync on update event as well. One sync caches the data, so the inventory data is sent over the network only when there is a change.
- Loading branch information
1 parent
c95b323
commit 81115dd
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters