How to Hide Certain Tabs in the Spawn Menu?

Used the below code to hide tabs but it doesn’t seem to work anymore. Can anyone help me?

/---------------------------------------------------------
Name: PerformLayout
---------------------------------------------------------
/
function PANEL:PerformLayout()
self.PanelList:StretchToParent( 0, 0, 0, 0 )
end

local CreationSheet = vgui.RegisterTable( PANEL, “Panel” )

local function CreateContentPanel()
local ctrl = vgui.CreateFromTable( CreationSheet )
return ctrl
end

/---------------------------------------------------------
Name: BunkMenu = this clears the menuns we dont need, but are part of sandbox.
---------------------------------------------------------
/
local function BunkMenu()
return
end

spawnmenu.AddCreationTab( "Entities", BunkMenu, "", 50 )
spawnmenu.AddCreationTab( "Vehicles", BunkMenu, "", 50 )
spawnmenu.AddCreationTab( "NPCs", BunkMenu, "", 50 )
spawnmenu.AddCreationTab( "Weapons", BunkMenu, "", 50 )
spawnmenu.AddCreationTab( "Browse", BunkMenu, "", 50 )

So no one knows how to hide tabs in the ‘Q’ menu?

spawnmenu.AddCreationTab( “Vehicles”, BunkMenu, “”, 50 )

Replace that with

spawnmenu.AddCreationTab( “#spawnmenu.category.vehicles”, BunkMenu “”, 50 )

And the rest should be along the lines of it.

Except for the part where this causes errors because of the missing comma, of course.

I’ve ran it and It come out a missing texture on the icon with nothing inside of the tab. But other than that it should be “okay”.

EDIT: However I couldn’t seem to get a condition going with it :confused:

I would like to get this working too, but none of my tabs are changing, was it broken in the last update?