qbcore-framework / qb-traphouse

Player Trap Houses For QB-Core
GNU General Public License v3.0
31 stars 128 forks source link

[BUG] Items not staying in traphouse stash #47

Closed nzkfc closed 1 year ago

nzkfc commented 2 years ago

Describe the bug Items don't stay in traphouse stash

Error: https://i.imgur.com/reL7lwX.png

To Reproduce Steps to reproduce the behavior:

  1. Enter traphouse
  2. Open stash
  3. Move in markedbills or any item from config
  4. Goes in, but on opening your own inventory it's back there and also the traphouse stash shows as it not in there

Expected behavior Items stay and convert to money based on the config

Screenshots Video: https://youtu.be/dTjZqoSPeXE

Questions (please complete the following information):

Additional context Add any other context about the problem here.

tom-osborne commented 2 years ago

I can't see the quantities of items in your video, but are you transferring a stack or a single item?

nzkfc commented 2 years ago

I tried both, stash is 800 but items combined are only around 150.

I tested this on our dev city and on the fresh qb-server I update daily and it's the same issue.

tom-osborne commented 2 years ago

@nzkfc I managed to watch your video on a proper screen.

So as far as I can see, the traphouse inventory works as intended.

nzkfc commented 2 years ago

Yeah correct, forgot about 1 at a time, however on a fresh pull, I can see nothing goes into the stash and stays, it instantly returns to inventory? I've checked both items are unique also.

This happens on our dev city, prod city and on my fresh qb-core that I wipe between tests to get the latest.

Vid: https://youtu.be/2E9J17q3aC8

jnccloud commented 1 year ago

@nzkfc this was introduced when the label was switched in https://github.com/qbcore-framework/qb-traphouse/commit/8d40bb85df6370864645a8fede0329b10a00326f

It's now been fixed with the latest merge in https://github.com/qbcore-framework/qb-traphouse/commit/058ba3fea7b86c2872eadd31eedca59b59fc491b

How do I know? Well, I applied the latest PR (491b) and it created the same problem for me. I went and added that older PR and it fixed it.

nzkfc commented 1 year ago

@nzkfc this was introduced when the label was switched in 8d40bb8

It's now been fixed with the latest merge in 058ba3f

How do I know? Well, I applied the latest PR (491b) and it created the same problem for me. I went and added that older PR and it fixed it.

Tried this, items just keep going back into inventory.

I will pull fresh qb build locally again and re-test the resource.