Hello,
In all my tries I figured out that when I use the ID of depot box(code below) xeno opens the depot box...
Code:
local itemData = Depot:GetItemData(i)
if (itemData.id == IDDepot) then
Depot:UseItem(i, true)
But, when I use the depot box name it doesn't open nothing..
Code:
Code:
local itemData = Depot:GetItemData(i)
if (Item.GetName(itemData.id) == 'depot box I') then
Depot:UseItem(i, true)
What I would like to know is, the fact xeno do not recognize the name means that it can not return any instance of a container when using Container.GetLast(),Container.New('depot box I')? Because when I trying do it, just return the depot chest with 17 items(depot box)