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

Unable to open shared inventory #1702

Open
Scantrax3112 opened this issue May 15, 2024 · 1 comment
Open

Unable to open shared inventory #1702

Scantrax3112 opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Scantrax3112
Copy link

Describe the bug
For a while now we are unable to open an inventory/stash/shop in game. In the config i have the following line:
setr inventory:police ["police", "kmar", "admin"]
When leaving the server the player is saved as offpolice or offkmar. They need to use a command ingame to toggle from offpolice/offkmar to police/kmar. When they try to use a shop after this it says "you can't use this inventory". After i restart ox_inventory in game they are able to use it. When a new player joins they can't access the shop until ox_inventory is restarted again. It seems to me that there is an issue with the setjob which is triggered with the command to switch between offpolice/offkmar to police/kmar but i'm not sure on how to fix this.

Framework
ESX Legacy

Resource version
Latest (2.40.1)

To Reproduce
Steps to reproduce the behavior:

  1. Join the server with any job but the jobs from inventory:police
  2. Change the job to any job from inventory:police
  3. Try to access the shops
  4. See error

Expected behavior
The shops should be working after going from offpolice/offkmar to police/kmar

@Scantrax3112 Scantrax3112 added the bug Something isn't working label May 15, 2024
@thelindat
Copy link
Member

esx:setJob event is used to keep this data updated in the inventory, and others are not experiencing this issue, so there's not enough information here to act on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants