Garry's Mod Wiki

SANDBOX:AddToolMenuCategories

void 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: 32ms

Session 0
DB GetPage 9
Generate Html 0
SaveChanges 8
Render Body 0
Render Sidebar 12