STool Problems


TOOL.Category = "Dark's Gear"
TOOL.Name = "#Text Screen"
TOOL.Command = nil
TOOL.ConfigName = ""
//TOOL.Tab = "Tools"

if (CLIENT) then
	language.Add("Tool_textscreen_name", "Text Screen")
	language.Add("Tool_textscreen_desc", "Does something or whatever")
	language.Add("Tool_textscreen_0", "Blah Blah Blah")
end

function TOOL.BuildCPanel(panel)
	panel:AddControl("Header", {Text = "c_textscreen_1", Description	= "Hello World"})
end

File path: …\DarkRP Server\garrysmod\addons\Text Screen\lua\weapons\gmod_tool\stools extscreen.lua

For some reason my STool’s Name/Description/Tooltip all appear as follows when equipping the tool in the display GUI.
I assume it has to do with the 2 tutorials I have been following being outdated (Latest being 2010 X_x).

#tool.textscreen.name
#tool.textscreen.desc
#tool.textscreen.0

EDIT: Im a fool… replaced Tool_textscreen_name with tool.textscreen.name and it works now :slight_smile: