Closed zh-development closed 2 years ago
I got this error, when full.
[ script:lj-inventory] SCRIPT ERROR: @lj-inventory/server/main.lua:1351: attempt to index a nil value (field '?')
I got this error, when full.
[ script:lj-inventory] SCRIPT ERROR: @lj-inventory/server/main.lua:1351: attempt to index a nil value (field '?')
Try the ny file i upload
and if you get the same error pls send what is on your line 1351
you can add me on discord zheane#5354 if you need more help
I got this error, when full.
[ script:lj-inventory] SCRIPT ERROR: @lj-inventory/server/main.lua:1351: attempt to index a nil value (field '?')
Try the ny file i upload
and if you get the same error pls send what is on your line 1351
you can add me on discord zheane#5354 if you need more help
thanks. ill do that, as this is a great idea.
I got this error, when full.
[ script:lj-inventory] SCRIPT ERROR: @lj-inventory/server/main.lua:1351: attempt to index a nil value (field '?')
Try the ny file i upload
and if you get the same error pls send what is on your line 1351
you can add me on discord zheane#5354 if you need more help
and this was the line 1351, from lj's code. but I see you moved it to the bottom of the Server/main
`local fromItemData = Drops[fromInventory].items[fromSlot]`
but I will let you know if I get a error again with the new change you did.
Add event to drop on ground when you are given item and you inventory is full
need newer qbcore version or you need to make a change in
qb-core/server/player.lua
replace line 355
TriggerClientEvent('QBCore:Notify', self.PlayerData.source, 'Your inventory is too heavy!', 'error')
with
Pull Request Description
Please include a general description of the changes made, why they were necessary, and any other general things to note.
Pull Request Checklist:
resource
in-game after the relevant change?