Project Zomboid

Project Zomboid

Profession Framework
Loner Yound 19 Jan, 2022 @ 5:45pm
Item in ItemContainer
Before i use this framework, i use banjo item trait mods and configure it to my pref. In that mod i can put items in bag as starting items. But i cant seem to do that with this mod.

Heres and example code (not full code):
------

if player:HasTrait("Cartographer") then
local bag = player:getInventory():AddItem("Base.Bag_FannyPackFront");

bag:getItemContainer():AddItem("Base.WestpointMap");
end

------
Will you implement this in the future? Maybe make it already equipped from the start. It might be useful for scenarios.
Thank you.