Hide spawn menu tabs?

Hello I was just wondering how would I hide spawn menu tabs, I mean the ones when you hold q It says weapons vechiles etc.
How do I hide them?
Many thanks

You can’t really block the tabs unless to edit garrysmod ( I don’t think anyways ). But you can block players from spawning stuff.



hook.Add("SpawnMenuOpen", "Block", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnEffect", "Block1", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnNPC", "Block2", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnObject", "Block3", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnProp", "Block4", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnRagdoll", "Block5", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnSENT", "Block6", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnSWEP", "Block7", function()
	local ply = LocalPlayer()

		
	
end)

hook.Add("PlayerSpawnVehicle", "Block8", function()
	local ply = LocalPlayer()

		
	
end)


Yes you can. The code provided above won’t do anything and will throw errors.

[editline]4th July 2013[/editline]



local function removeOldTabls()
	for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
		if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or 
			v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or 
			v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or 
			v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or 
			v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") ) then
			g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
		end
	end
end

hook.Add( "PopulateContent", "rb655_", function( pnlContent, tree, node )
	removeOldTabls()
end )


Where would I paste this code?