Need help fixing my Derma code

http://img812.imageshack.us/img812/2971/2011070700001.jpg
Uploaded with ImageShack.us

I wanted the spawnicons to be apart of the drop down menu, also for some reason it seems the tabs have repeated themselves over and over again.

cl_init.lua:
[lua]include( ‘shared.lua’ )

// Clientside only stuff goes here
function ShowTeamMenu()
local DermaPanel = vgui.Create( “DFrame” ) – Creates the frame itself
DermaPanel:SetPos( 80,80 ) – Position on the players screen
DermaPanel:SetSize( 800, 600 ) – Size of the frame
DermaPanel:SetTitle( “Main Menu” ) – Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false ) – Draggable by mouse?
DermaPanel:ShowCloseButton( true ) – Show the close button?
DermaPanel:MakePopup() – Show the frame

local TestingPanel = vgui.Create( “DPanel”, DermaPanel )
TestingPanel:SetPos( 25, 50 )
TestingPanel:SetSize( 750, 50 )
TestingPanel.Paint = function() – Paint function
surface.SetDrawColor( 50, 50, 50, 255 ) – Set our rect color below us; we do this so you can see items added to this panel
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() ) – Draw the rect
surface.DrawText( “Message of the Day: Zyler Rocks!” )
end

local PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 25, 110 )
PropertySheet:SetSize( 750, 315 )

local Welcome = vgui.Create( “DLabel” )
Welcome:SetText( “A” )
Welcome:SetColor(Color(191,255,0,255))
Welcome:SizeToContents()

local Character = vgui.Create( “DLabel” )
Character:SetText( “B” )
Character:SetColor(Color(191,255,0,255))
Character:SizeToContents()

local Props = vgui.Create( “DLabel” )
Props:SetText( “C” )
Props:SetColor(Color(191,255,0,255))
Props:SizeToContents()

local food = {}

    food[1] = "models/props_junk/garbage_milkcarton002a.mdl"
food[2] = "models/props_junk/PopCan01a.mdl"
food[3] = "models/props_junk/garbage_takeoutcarton001a.mdl"
food[4] = "models/props_junk/watermelon01.mdl"
food[5] = "models/props_junk/garbage_metalcan001a.mdl"
food[6] = "models/props_lab/box01a.mdl"
food[7] = "models/props_lab/box01b.mdl"

local Proplist1 = vgui.Create(“DCollapsibleCategory”, Props)
Proplist1:SetPos( 25,50 )
Proplist1:SetSize( 200, 50 ) – Keep the second number at 50
Proplist1:SetLabel( “Proplist1” )

Proplist1menu = vgui.Create(“DModelSelect” )
Proplist1menu:SetAutoSize( true )
Proplist1menu:SetSpacing( 5 )
Proplist1menu:EnableHorizontal( false )
Proplist1menu:EnableVerticalScrollbar( true )
Proplist1menu:SetPadding( 4 )

for k,v in pairs(food) do
local icon = vgui.Create( “SpawnIcon”, IconList )
icon:SetModel( v )
Proplist1menu:AddItem( icon )
icon.DoClick = function( icon ) surface.PlaySound( “ui/buttonclickrelease.wav” ) RunConsoleCommand(“gm_spawn”, v)

PropertySheet:AddSheet( “Welcome”, Welcome, “gui/silkicons/user”, false, false, “Rules and stuff” )
PropertySheet:AddSheet( “Character/Groups”, Character, “gui/silkicons/group”, false, false, “Manage your character and groups” )
PropertySheet:AddSheet( “Props/Tools”, Props, “gui/silkicons/group”, false, false, “Get Props and Tools” )

end
end
end

usermessage.Hook( “call_vgui”, ShowTeamMenu )
[/lua]

Try moving the end for the for loop before you add the property sheets.

[lua]include( ‘shared.lua’ )

// Clientside only stuff goes here
function ShowTeamMenu()
local DermaPanel = vgui.Create( “DFrame” ) – Creates the frame itself
DermaPanel:SetPos( 80,80 ) – Position on the players screen
DermaPanel:SetSize( 800, 600 ) – Size of the frame
DermaPanel:SetTitle( “Main Menu” ) – Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false ) – Draggable by mouse?
DermaPanel:ShowCloseButton( true ) – Show the close button?
DermaPanel:MakePopup() – Show the frame

local TestingPanel = vgui.Create( “DPanel”, DermaPanel )
TestingPanel:SetPos( 25, 50 )
TestingPanel:SetSize( 750, 50 )
TestingPanel.Paint = function() – Paint function
surface.SetDrawColor( 50, 50, 50, 255 ) – Set our rect color below us; we do this so you can see items added to this panel
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() ) – Draw the rect
surface.DrawText( “Message of the Day: Zyler Rocks!” )
end

local PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 25, 110 )
PropertySheet:SetSize( 750, 315 )

local Welcome = vgui.Create( “DLabel” )
Welcome:SetText( “A” )
Welcome:SetColor(Color(191,255,0,255))
Welcome:SizeToContents()

local Character = vgui.Create( “DLabel” )
Character:SetText( “B” )
Character:SetColor(Color(191,255,0,255))
Character:SizeToContents()

local Props = vgui.Create( “DLabel” )
Props:SetText( “C” )
Props:SetColor(Color(191,255,0,255))
Props:SizeToContents()

local food = {}

    food[1] = "models/props_junk/garbage_milkcarton002a.mdl"
food[2] = "models/props_junk/PopCan01a.mdl"
food[3] = "models/props_junk/garbage_takeoutcarton001a.mdl"
food[4] = "models/props_junk/watermelon01.mdl"
food[5] = "models/props_junk/garbage_metalcan001a.mdl"
food[6] = "models/props_lab/box01a.mdl"
food[7] = "models/props_lab/box01b.mdl"

local Proplist1 = vgui.Create(“DCollapsibleCategory”, Props)
Proplist1:SetPos( 25,50 )
Proplist1:SetSize( 200, 50 ) – Keep the second number at 50
Proplist1:SetLabel( “Proplist1” )

Proplist1menu = vgui.Create(“DModelSelect” )
Proplist1menu:SetAutoSize( true )
Proplist1menu:SetSpacing( 5 )
Proplist1menu:EnableHorizontal( false )
Proplist1menu:EnableVerticalScrollbar( true )
Proplist1menu:SetPadding( 4 )

for k,v in pairs(food) do
local icon = vgui.Create( “SpawnIcon”, IconList )
icon:SetModel( v )
Proplist1menu:AddItem( icon )
icon.DoClick = function( icon ) surface.PlaySound( “ui/buttonclickrelease.wav” ) RunConsoleCommand(“gm_spawn”, v)
end

PropertySheet:AddSheet( “Welcome”, Welcome, “gui/silkicons/user”, false, false, “Rules and stuff” )
PropertySheet:AddSheet( “Character/Groups”, Character, “gui/silkicons/group”, false, false, “Manage your character and groups” )
PropertySheet:AddSheet( “Props/Tools”, Props, “gui/silkicons/group”, false, false, “Get Props and Tools” )

end
end

usermessage.Hook( “call_vgui”, ShowTeamMenu )[/lua]

I did that but I’m still receiving the same problem, it doesn’t seem to have changed anything. Does it have anything to do with me not deriving from sandbox?

Line 67, your parenting to a null vgui object?

You still left the property sheets inside the for loop

[lua]for k,v in pairs(food) do
local icon = vgui.Create( “SpawnIcon”, IconList )
icon:SetModel( v )
Proplist1menu:AddItem( icon )
icon.DoClick = function( icon ) surface.PlaySound( “ui/buttonclickrelease.wav” ) RunConsoleCommand(“gm_spawn”, v)
end --End the icon.DoClick function

–Move the end stated below up here

PropertySheet:AddSheet( “Welcome”, Welcome, “gui/silkicons/user”, false, false, “Rules and stuff” )
PropertySheet:AddSheet( “Character/Groups”, Character, “gui/silkicons/group”, false, false, “Manage your character and groups” )
PropertySheet:AddSheet( “Props/Tools”, Props, “gui/silkicons/group”, false, false, “Get Props and Tools” )

end --End the for loop
end --End the ShowTeam function[/lua]

It should probably look like this
[lua]include( ‘shared.lua’ )

// Clientside only stuff goes here
function ShowTeamMenu()
local DermaPanel = vgui.Create( “DFrame” ) – Creates the frame itself
DermaPanel:SetPos( 80,80 ) – Position on the players screen
DermaPanel:SetSize( 800, 600 ) – Size of the frame
DermaPanel:SetTitle( “Main Menu” ) – Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false ) – Draggable by mouse?
DermaPanel:ShowCloseButton( true ) – Show the close button?
DermaPanel:MakePopup() – Show the frame

local TestingPanel = vgui.Create( “DPanel”, DermaPanel )
TestingPanel:SetPos( 25, 50 )
TestingPanel:SetSize( 750, 50 )
TestingPanel.Paint = function() – Paint function
surface.SetDrawColor( 50, 50, 50, 255 ) – Set our rect color below us; we do this so you can see items added to this panel
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() ) – Draw the rect
surface.DrawText( “Message of the Day: Zyler Rocks!” )
end

local PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 25, 110 )
PropertySheet:SetSize( 750, 315 )

local Welcome = vgui.Create( “DLabel” )
Welcome:SetText( “A” )
Welcome:SetColor(Color(191,255,0,255))
Welcome:SizeToContents()

local Character = vgui.Create( “DLabel” )
Character:SetText( “B” )
Character:SetColor(Color(191,255,0,255))
Character:SizeToContents()

local Props = vgui.Create( “DLabel” )
Props:SetText( “C” )
Props:SetColor(Color(191,255,0,255))
Props:SizeToContents()

local food = {}

    food[1] = "models/props_junk/garbage_milkcarton002a.mdl"
food[2] = "models/props_junk/PopCan01a.mdl"
food[3] = "models/props_junk/garbage_takeoutcarton001a.mdl"
food[4] = "models/props_junk/watermelon01.mdl"
food[5] = "models/props_junk/garbage_metalcan001a.mdl"
food[6] = "models/props_lab/box01a.mdl"
food[7] = "models/props_lab/box01b.mdl"

local Proplist1 = vgui.Create(“DCollapsibleCategory”, Props)
Proplist1:SetPos( 25,50 )
Proplist1:SetSize( 200, 50 ) – Keep the second number at 50
Proplist1:SetLabel( “Proplist1” )

Proplist1menu = vgui.Create(“DModelSelect” )
Proplist1menu:SetAutoSize( true )
Proplist1menu:SetSpacing( 5 )
Proplist1menu:EnableHorizontal( false )
Proplist1menu:EnableVerticalScrollbar( true )
Proplist1menu:SetPadding( 4 )

for k,v in pairs(food) do
local icon = vgui.Create( “SpawnIcon”, IconList )
icon:SetModel( v )
Proplist1menu:AddItem( icon )
icon.DoClick = function( icon ) surface.PlaySound( “ui/buttonclickrelease.wav” ) RunConsoleCommand(“gm_spawn”, v)
end
end

PropertySheet:AddSheet( “Welcome”, Welcome, “gui/silkicons/user”, false, false, “Rules and stuff” )
PropertySheet:AddSheet( “Character/Groups”, Character, “gui/silkicons/group”, false, false, “Manage your character and groups” )
PropertySheet:AddSheet( “Props/Tools”, Props, “gui/silkicons/group”, false, false, “Get Props and Tools” )

end

usermessage.Hook( “call_vgui”, ShowTeamMenu )[/lua]

And yeah, as zzzack stated, at line 67 your not stating what “IconList” is, so you need to make something for that

[lua]include( ‘shared.lua’ )

// Clientside only stuff goes here
function ShowTeamMenu()
local DermaPanel = vgui.Create( “DFrame” ) – Creates the frame itself
DermaPanel:SetPos( 80,80 ) – Position on the players screen
DermaPanel:SetSize( 800, 600 ) – Size of the frame
DermaPanel:SetTitle( “Main Menu” ) – Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false ) – Draggable by mouse?
DermaPanel:ShowCloseButton( true ) – Show the close button?
DermaPanel:MakePopup() – Show the frame

local TestingPanel = vgui.Create( “DPanel”, DermaPanel )
TestingPanel:SetPos( 25, 50 )
TestingPanel:SetSize( 750, 50 )
TestingPanel.Paint = function() – Paint function
surface.SetDrawColor( 50, 50, 50, 255 ) – Set our rect color below us; we do this so you can see items added to this panel
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() ) – Draw the rect
surface.DrawText( “Message of the Day: Zyler Rocks!” )
end

local PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 25, 110 )
PropertySheet:SetSize( 750, 315 )

local Welcome = vgui.Create( “DLabel” )
Welcome:SetText( “A” )
Welcome:SetColor(Color(191,255,0,255))
Welcome:SizeToContents()

local Character = vgui.Create( “DLabel” )
Character:SetText( “B” )
Character:SetColor(Color(191,255,0,255))
Character:SizeToContents()

local Props = vgui.Create( “DLabel” )
Props:SetText( “C” )
Props:SetColor(Color(191,255,0,255))
Props:SizeToContents()

local food = {}

    food[1] = "models/props_junk/garbage_milkcarton002a.mdl"
food[2] = "models/props_junk/PopCan01a.mdl"
food[3] = "models/props_junk/garbage_takeoutcarton001a.mdl"
food[4] = "models/props_junk/watermelon01.mdl"
food[5] = "models/props_junk/garbage_metalcan001a.mdl"
food[6] = "models/props_lab/box01a.mdl"
food[7] = "models/props_lab/box01b.mdl"

local Proplist1 = vgui.Create(“DCollapsibleCategory”, Props)
Proplist1:SetPos( 25,50 )
Proplist1:SetSize( 200, 50 ) – Keep the second number at 50
Proplist1:SetLabel( “Proplist1” )

Proplist1menu = vgui.Create(“DModelSelect” )
Proplist1menu:SetAutoSize( true )
Proplist1menu:SetSpacing( 5 )
Proplist1menu:EnableHorizontal( false )
Proplist1menu:EnableVerticalScrollbar( true )
Proplist1menu:SetPadding( 4 )

for k,v in pairs(food) do
local icon = vgui.Create( “SpawnIcon”, Proplist1menu )
icon:SetModel( v )
Proplist1menu:AddItem( icon )
icon.DoClick = function( icon ) surface.PlaySound( “ui/buttonclickrelease.wav” ) RunConsoleCommand(“gm_spawn”, v)
end
end

PropertySheet:AddSheet( “Welcome”, Welcome, “gui/silkicons/user”, false, false, “Rules and stuff” )
PropertySheet:AddSheet( “Character/Groups”, Character, “gui/silkicons/group”, false, false, “Manage your character and groups” )
PropertySheet:AddSheet( “Props/Tools”, Props, “gui/silkicons/group”, false, false, “Get Props and Tools” )

end[/lua]

Moving the end location fixed the repeating tabs problem, but the icons still don’t appear in the menu and are in the same place and everything as before.

The best thing to do would be to create a DPanel or DPanelList for each tab, and parent all of the items you want in that tab to the panel. Then when you do PropertySheet:AddSheet(blah), just do
[lua]PropertySheet:AddSheet(“Blah”, DPanel, etc)[/lua]

You can’t parent a collapsible category to a DLabel respectively.

doing this:

[lua]include( ‘shared.lua’ )

// Clientside only stuff goes here
function ShowTeamMenu()
local DermaPanel = vgui.Create( “DFrame” ) – Creates the frame itself
DermaPanel:SetPos( 80,80 ) – Position on the players screen
DermaPanel:SetSize( 800, 600 ) – Size of the frame
DermaPanel:SetTitle( “Main Menu” ) – Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false ) – Draggable by mouse?
DermaPanel:ShowCloseButton( true ) – Show the close button?
DermaPanel:MakePopup() – Show the frame

local TestingPanel = vgui.Create( “DPanel”, DermaPanel )
TestingPanel:SetPos( 25, 50 )
TestingPanel:SetSize( 750, 50 )
TestingPanel.Paint = function() – Paint function
surface.SetDrawColor( 50, 50, 50, 255 ) – Set our rect color below us; we do this so you can see items added to this panel
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() ) – Draw the rect
surface.DrawText( “Message of the Day: Zyler Rocks!” )
end

local PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 25, 110 )
PropertySheet:SetSize( 750, 315 )

local Welcome = vgui.Create( “DLabel” )
Welcome:SetText( “A” )
Welcome:SetColor(Color(191,255,0,255))
Welcome:SizeToContents()

local Character = vgui.Create( “DLabel” )
Character:SetText( “B” )
Character:SetColor(Color(191,255,0,255))
Character:SizeToContents()

local Props = vgui.Create( “DPanel” )
Props:SizeToContents()
Props.paint = function()
surface.SetDrawColor(Color(191,255,0,255))
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() )
surface.DrawText( “Pick props to spawn” )
end

local food = {}

    food[1] = "models/props_junk/garbage_milkcarton002a.mdl"
food[2] = "models/props_junk/PopCan01a.mdl"
food[3] = "models/props_junk/garbage_takeoutcarton001a.mdl"
food[4] = "models/props_junk/watermelon01.mdl"
food[5] = "models/props_junk/garbage_metalcan001a.mdl"
food[6] = "models/props_lab/box01a.mdl"
food[7] = "models/props_lab/box01b.mdl"

local Proplist1 = vgui.Create(“DCollapsibleCategory”, Props)
Proplist1:SetPos( 25,50 )
Proplist1:SetSize( 200, 50 ) – Keep the second number at 50
Proplist1:SetLabel( “Proplist1” )

Proplist1menu = vgui.Create(“DModelSelect” )
Proplist1menu:SetAutoSize( true )
Proplist1menu:SetSpacing( 5 )
Proplist1menu:EnableHorizontal( false )
Proplist1menu:EnableVerticalScrollbar( true )
Proplist1menu:SetPadding( 4 )

for k,v in pairs(food) do
local icon = vgui.Create( “SpawnIcon”, Proplist1menu )
icon:SetModel( v )
Proplist1menu:AddItem( icon )
icon.DoClick = function( icon ) surface.PlaySound( “ui/buttonclickrelease.wav” ) RunConsoleCommand(“gm_spawn”, v)
end
end

PropertySheet:AddSheet( “Welcome”, Welcome, “gui/silkicons/user”, false, false, “Rules and stuff” )
PropertySheet:AddSheet( “Character/Groups”, Character, “gui/silkicons/group”, false, false, “Manage your character and groups” )
PropertySheet:AddSheet( “Props/Tools”, Props, “gui/silkicons/group”, false, false, “Get Props and Tools” )

end

usermessage.Hook( “call_vgui”, ShowTeamMenu )
[/lua]

gives me this:
http://img11.imageshack.us/img11/9458/2011070800001.jpg
Uploaded with ImageShack.us

See, it has a nice border around it now?

Anyway, it seems I’m still looking for help on this one.

You need to parent the Proplist1menu to something, and I guess you want it done to the collapsible category

Replace line 63 with this:

[lua]Proplist1menu = vgui.Create(“DModelSelect”, Proplist1 )[/lua]

[lua]include( ‘shared.lua’ )

// Clientside only stuff goes here
function ShowTeamMenu()
local DermaPanel = vgui.Create( “DFrame” ) – Creates the frame itself
DermaPanel:SetPos( 80,80 ) – Position on the players screen
DermaPanel:SetSize( 800, 600 ) – Size of the frame
DermaPanel:SetTitle( “Main Menu” ) – Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false ) – Draggable by mouse?
DermaPanel:ShowCloseButton( true ) – Show the close button?
DermaPanel:MakePopup() – Show the frame

local TestingPanel = vgui.Create( “DPanel”, DermaPanel )
TestingPanel:SetPos( 25, 50 )
TestingPanel:SetSize( 750, 50 )
TestingPanel.Paint = function() – Paint function
surface.SetDrawColor( 50, 50, 50, 255 ) – Set our rect color below us; we do this so you can see items added to this panel
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() ) – Draw the rect
surface.DrawText( “Message of the Day: Zyler Rocks!” )
end

local PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 25, 110 )
PropertySheet:SetSize( 750, 315 )

local Welcome = vgui.Create( “DLabel” )
Welcome:SetText( “A” )
Welcome:SetColor(Color(191,255,0,255))
Welcome:SizeToContents()

local Character = vgui.Create( “DLabel” )
Character:SetText( “B” )
Character:SetColor(Color(191,255,0,255))
Character:SizeToContents()

local Props = vgui.Create( “DPanel” )
Props:SizeToContents()
Props.paint = function()
surface.SetDrawColor(Color(191,255,0,255))
surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() )
surface.DrawText( “Pick props to spawn” )
end

local food = {}

    food[1] = "models/props_junk/garbage_milkcarton002a.mdl"
food[2] = "models/props_junk/PopCan01a.mdl"
food[3] = "models/props_junk/garbage_takeoutcarton001a.mdl"
food[4] = "models/props_junk/watermelon01.mdl"
food[5] = "models/props_junk/garbage_metalcan001a.mdl"
food[6] = "models/props_lab/box01a.mdl"
food[7] = "models/props_lab/box01b.mdl"

local Proplist1 = vgui.Create(“DCollapsibleCategory”, Props)
Proplist1:SetPos( 25,50 )
Proplist1:SetSize( 1000, 50 ) – Keep the second number at 50
Proplist1:SetLabel( “Proplist1” )

Proplist1menu = vgui.Create(“DModelSelect”, Proplist1 )
Proplist1menu:SetAutoSize( true )
Proplist1menu:SetSpacing( 5 )
Proplist1menu:EnableHorizontal( false )
Proplist1menu:EnableVerticalScrollbar( true )
Proplist1menu:SetPadding( 4 )

for k,v in pairs(food) do
local icon = vgui.Create( “SpawnIcon”, Proplist1menu )
icon:SetModel( v )
Proplist1menu:AddItem( icon )
icon.DoClick = function( icon ) surface.PlaySound( “ui/buttonclickrelease.wav” ) RunConsoleCommand(“gm_spawn”, v)
end
end

PropertySheet:AddSheet( “Welcome”, Welcome, “gui/silkicons/user”, false, false, “Rules and stuff” )
PropertySheet:AddSheet( “Character/Groups”, Character, “gui/silkicons/group”, false, false, “Manage your character and groups” )
PropertySheet:AddSheet( “Props/Tools”, Props, “gui/silkicons/group”, false, false, “Get Props and Tools” )

end

usermessage.Hook( “call_vgui”, ShowTeamMenu )
[/lua]

http://img339.imageshack.us/img339/9585/2011070800002.jpg
Uploaded with ImageShack.us

It’s been a day, is it okay if I bump this?

NO, IT’S ONLY BEEN 23 HOURS - YOU CAN’T DO THIS :wink:
(^ Internet scarcasm for those that don’t understand it and need it pointed out before raging)

But the way you currently have the models moving together and parenting etc, that’s what is causing them to go into places you don’t want them
You may need to firstly resize the Collapsible Category to allow more spawn icons to firstly be able to fit in there, just play around with it a bit I guess

Just edit a bit of the menu, reload your script using “lua_openscript filepath/filename.lua” and see how it works out for you