SANDBOX:AddToolMenuCategories

From Garry's Mod
Jump to: navigation, search
 SANDBOX:AddToolMenuCategories( )

Description

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

Examples

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 )


Personal tools
Navigation