Closed brunomtr5 closed 1 year ago
i have the same issue
So the problem its not in the qb-traphouse its in qb-inventory, before calling the export "GetInventoryData" to get the traphouse id they split a string and the character used for the split its wrong.
To solve it go to line 1602 of latest qb-inventory/server and replace this:
local traphouseId = QBCore.Shared.SplitStr(toInventory, "-")[2]
For this:
local traphouseId = QBCore.Shared.SplitStr(toInventory, "_")[2]
This should solve your problems with the traphouse
Many thanks, I will update it.
Best regards, Bruno Pereira
Latest PR fixes this issue as well: https://github.com/qbcore-framework/qb-traphouse/commit/058ba3fea7b86c2872eadd31eedca59b59fc491b
So the problem its not in the qb-traphouse its in qb-inventory, before calling the export "GetInventoryData" to get the traphouse id they split a string and the character used for the split its wrong.
To solve it go to line 1602 of latest qb-inventory/server and replace this:
local traphouseId = QBCore.Shared.SplitStr(toInventory, "-")[2]
For this:local traphouseId = QBCore.Shared.SplitStr(toInventory, "_")[2]
This should solve your problems with the traphouse
it doesn't work for me got also the same errors
Hello, I've got an error when trying to place an item in the traphouse inventory.
[ script:qb-traphouse] SCRIPT ERROR: @qb-traphouse/server/main.lua:109: attempt to index a nil value (field '?') [ script:qb-traphouse] > ref (@qb-traphouse/server/main.lua:109) [ script:qb-traphouse] > handler (@qb-inventory/server/main.lua:1599) [ script:qb-inventory] SCRIPT ERROR: @qb-inventory/server/main.lua:1599: [ script:qb-inventory] An error occurred while calling export
GetInventoryData
in resourceqb-traphouse
:The item doesn't go to the stash inventory. When I open the inventory the item is still there. There is no 'cleaning' procedure.
Best regards, Bruno Pereira