• spawnmenu.AddToolMenuOption Problems
    3 replies, posted
So... i want to add a menu under the tab "Options" for my addon but i can't seem to get it working by using spawnmenu.AddToolMenuOption. Any ideas what i might be doing wrong/ any tips.
Could you post your code?
The Options tab doesn't exist by default. It will not magically appear via the example on the page you linked.
This is what i got so far. if CLIENT then local function EasyCommandsOption(panel) local EasyCommandsOption = {Options = {}, CVars = {}, Label = "#Presets", MenuButton = "1", Folder = "Easy Commands Option"} panel:AddControl("Label", {Text = "Made by pLASTER"}) end function EasyCommandsAddOption() spawnmenu.AddToolMenuOption("Options", "Easy Commands Option", "Easy Commands Option", "Easy Commands Option", "", "", EasyCommandsOption) end hook.Add("PopulateToolMenu", "EasyCommandsAddOption", EasyCommandsAddOption) end
Sorry, you need to Log In to post a reply to this thread.