Garry's Mod Wiki

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 )

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 4
Generate Html 1
SaveChanges 10
Render Body 0
Render Sidebar 12