• How do i add a tool to the list?
    1 replies, posted
Hello, I'm looking at making some tools and i was wondering how i would go about adding that tool to the list of tools? The code for the tool its-self is done, just wondering about adding it to the menu.
Have a look inside of [B]garrysmod\garrysmod\gamemodes\sandbox\entities\wea pons\gmod_tool\stools[/B] and open something like [B]elastic.lua[/B]. It should show you anything you're missing, particularly: [CODE] TOOL.Category = "Construction" TOOL.Name = "#Tool.yourtool.name" if ( CLIENT ) then language.Add( "Tool.yourtool.name", "Your tool name" ) language.Add( "Tool.yourtool.desc", "Your tool description" ) end function TOOL.BuildCPanel( cpanel ) cpanel:AddControl( "Header", { Text = "#Tool.yourtool.name", Description = "#Tool.yourtool.desc" } ) -- etc etc end[/CODE]
Sorry, you need to Log In to post a reply to this thread.