Garry's Mod Wiki

SANDBOX:AddToolMenuCategories

  SANDBOX:AddToolMenuCategories()

Description

This hook is used to add new categories to spawnmenu tool tabs.

Example

Adds default categories to Utilities tab in spawnmenu.

local function CreateUtilitiesCategories() spawnmenu.AddToolCategory( "Utilities", "User", "#spawnmenu.utilities.user" ) spawnmenu.AddToolCategory( "Utilities", "Admin", "#spawnmenu.utilities.admin" ) end hook.Add( "AddToolMenuCategories", "CreateUtilitiesCategories", CreateUtilitiesCategories )