Garry's Mod Wiki

spawnmenu.ActivateTool

  spawnmenu.ActivateTool( string tool, boolean menu_only = false )

Description

Activates a tool, opens context menu and brings up the tool gun.

Arguments

1 string tool
Tool class/file name
2 boolean menu_only = false
Should we activate this tool in the menu only or also the toolgun? true = menu only,false = toolgun aswell