Spawn items when placing a locker?
Hello, how would I go about placing a locker and spawning items in it I am at the part of using OnConstructionPlace and getting the lockers prefabID
object OnConstructionPlace(BaseEntity entity, Construction component, Construction.Target constructionTarget, BasePlayer player) {
            if (component.prefabID == 177343599) {
                // Spawn stuff in locker
                PrintToChat("Placed Locker!");
            }
            return null;
        }​
I am just stuck on the part of putting items in it.
// we change the signature here to use Locker entity, this way the method is only called when a Locker is placed
object OnConstructionPlace(Locker entity, Construction component, Construction.Target constructionTarget, BasePlayer player)
{
	// we have to use the NextTick callback here because the entity hasn't been spawned yet
	// it will get spawned after OnConstructionPlace returns
	NextTick(() =>
	{
		// create an item by its ID or name
		Item boots = ItemManager.CreateByName("shoes.boots");
		Item m39 = ItemManager.CreateByItemID(28201841); // m39
		
		Item hat = ItemManager.CreateByName("hat.boonie");
		Item ak = ItemManager.CreateByName("rifle.ak");
		
		Item pants = ItemManager.CreateByName("pants");
		Item m249 = ItemManager.CreateByName("lmg.m249");
		
		
		// move the item to slot 
		boots?.MoveToContainer(entity.inventory, 0);
		m39?.MoveToContainer(entity.inventory, 7);
		
		hat?.MoveToContainer(entity.inventory, 13);
		ak?.MoveToContainer(entity.inventory, 20);
		
		pants?.MoveToContainer(entity.inventory, 26);
		m249?.MoveToContainer(entity.inventory, 33);
	});
		
	return null;
}