#Issue with self.PlayData.money[moneytype]

1 messages · Page 1 of 1 (latest)

fickle socket
#

Script Name: QB-Core

Error : SCRIPT ERROR: @qb-core/server/player.lua:349: attempt to compare number with nil, which likely caused an error with ps-inventory, which is: SCRIPT ERROR: error object is not a string. Both are showing on my console, when I add an item to my inventory and open it up, it totally wipes everything I just put in there.

What's the issue your experiencing: Appears the recent QB-Core update has caused an issue with the money type. Also appears to have caused an issue with PS-Inventory. I assume PS-Inventory relies on the money type due to the unexpected data type error on the console such as nil or non-string value being used. I believe fixing the nil money value issue would resolve the script error and the inventory wipe issue when I go to add something to my inventory and open it back up, it is completely wiped out as if I never put it in there. Please help me resolve this issue, thanks in advance!

What was the last thing that changed: Nothing, just the QB-Core update. I did not have this issue, but after installing the recent update, I now have this issue. And PS-Inventory did not have any recent updates, so I did not update that.

What measures and steps have you taken to troubleshoot this issue: I attempted to use visual code and open my resources and search for all qb-inventory and replaced with ps-inventory. After that I restarted my server and tried to add something to my inventory again, and it still does the same thing with both errors showing. Could not find a way to rollback to the previous QB-Core version. So I added a couple of lines, which I included in a screenshot of what I added near line: 349 on the player.lua inside of qb-core/server. After saving that, I restarted my server, tried to add something to my inventory again, and it still did not work and still receiving the same errors.

Video/screenshot: Yes, will add them all.

dense radish
#

I have a qb core version like 4 months old would that help you ?

fickle socket
dense radish
#

Ok let me check

fickle socket
#

Okay, i appreciate you! That will definitely help a lot! @dense radish