loljoshie / lj-inventory

GNU General Public License v3.0
91 stars 179 forks source link

Item undefined #72

Closed Cynist3r closed 2 years ago

Cynist3r commented 2 years ago

I have been looking at this for a while, not sure what i am missing. Its not picking up the amount of items when received, due to RegisterNetEvent('inventory:client:ItemBox', function(itemData, type, amount) amount = amount or 1 SendNUIMessage({ action = "itemBox", item = itemData, type = type, itemAmount = amount }) end)

Line 291 in client main If I remove the "or 1" it just shows undefined, however if i leave it even if i receive more than 1 item it shows received 1.