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.
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.