- name
- count
- health
- durability, for e.g. tools and repair-kits
- ammo, for left rounds in e.g. firearm-magazines
Thanks,
Gerhard
Code: Select all
local leftover = inventory.add_stack(itemstack)
Code: Select all
local itemstack = {name = "firearm-magazine", count = 2, ammo = 6}
local leftover = inventory.add_stack(itemstack)
-- leftover = {name = "firearm-magazine", count = 1, ammo = 8}
It is amazing to see you are implementing requests that have been made some time ago. Thanks a lot!Rseding91 wrote:Added for 0.15.