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

ox-Inventory storage sync issue on property deletion #17

Open
lily-de-vries opened this issue Apr 30, 2023 · 0 comments
Open

ox-Inventory storage sync issue on property deletion #17

lily-de-vries opened this issue Apr 30, 2023 · 0 comments

Comments

@lily-de-vries
Copy link

Describe the bug
Currently the PropertyId is the iteration / position of the property within the "properies.json" file.
When removing a property all existing properties greater then the one that has been removed will decrease one in value creating issues with OX_Inventory stashes. In order for OX_inventory stashes to work the Property id needs to be a static id.

To Reproduce

  1. Create two or more properties.
  2. Enter house number two and notice the stash id: (property-2)
  3. Leave house number two and remove house number one using the admin menu.
  4. Enter house number two again and notice the stash id: (property-1)

Expected behavior
When deleting a property all properties with a greater property id should keep their property ID in order not to lose their stashes/storage contents.

Screenshots

Debug Info (please complete the following information):

  • OS: Ubuntu
  • FiveM Artifact latest recommended
  • ESX Version: 1.9.4

Additional information:
Fixed it on our project by adding a static Id for each property.

@lily-de-vries lily-de-vries changed the title [Bug] ox-Inventory storage sync issue on property deletion ox-Inventory storage sync issue on property deletion Apr 30, 2023
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

No branches or pull requests

1 participant