Inventory System help

I was watching Design3:s inventory tutorial.
but when i got to part 9 “Making objects appear in the inventory” the video stops working at 8:00 minutes for some reason.

Is there anyone who can help me with the scripting of the last 3-4 minutes of the video cuz i really need it.

the last code i wrote was :

for(var i = 0; i < 4; i++)
	{
		for(var j = 0; j < 4; j++)
		{
			if(ctrl.GetObjectsInBag(4*i+j))
			{
				
			}

Thanks in advance

Dunno what the tutorial was trying to do (not watched it), but not so long ago a guy was asking about coding an inventory I gave him help in this thread. Hope it’s useful to you.