Custom Inventory

I am working on a custom interface for inventory, and I’ve gotten it about 75% complete and working. I just need to make seperate tabs/folders for stuff like Weapons/Longsword, Armor/Iron Helm, ect… for example. And add scrolling.

Scrolling I can get working, I’ve just been lazy. But I am a bit stuck on the seperate of catagories.

Now, I know how to seperate, but keeping them grouped is where I get stuck. Attached is an example script I created for a Staff UI that only shows Staff Scripts in a drop down menu.

Basically, this works. It only shows staff NPCs you have. But they don’t stay grouped, because the script reads all NPC IDs and thus creates spacing for everything. So you see maybe 1 NPC on row one, 2 in row 2, none in row 3 and then maybe a full row in row 4 for example.

If anyone can help, I’d greatly aprpeciate it. If more info is needed, I’ll post that.