Garry's Mod Wiki

Revision Difference

spawnmenu.ActivateTool#543797

<function name="ActivateTool" parent="spawnmenu" type="libraryfunc"> <description>Activates a tool, opens context menu and brings up the tool gun.</description> <realm>Client</realm> <args> <arg name="tool" type="string">Tool class/file name</arg> <arg name="menu_only" type="bool">Should we activate this tool in the menu only or also the toolgun? True = menu only, False = toolgun aswell</arg> <arg name="menu_only" type="boolean">Should we activate this tool in the menu only or also the toolgun? `true` = menu only,`false` = toolgun aswell</arg> </args> </function> ⤶ ⤶