Ulysses
General => Developers Corner => Topic started by: Unknown Gamer on December 31, 2014, 04:26:05 PM
-
Just wondering how do I add a donate, or any other menu to the "Menus" tab in the !menu? More so how do I edit the pre installed donate button?
(http://i.gyazo.com/0a32e139bf9c2cb0d6ad4991b50e5865.png)
-
You add anything to the Menu by putting it in the Menu Category while coding it. To edit it, go to ulx/lua/ulx/modules/sh/menus.lua
-
You add anything to the Menu by putting it in the Menu Category while coding it. To edit it, go to ulx/lua/ulx/modules/sh/menus.lua
I know, What is the code though :P THe code i keep putting in is not working and creates errors.
-
local CATEGORY_NAME = "Menus"
at the beginning of the ULX script
for donate, I'm assuming you're using the Custom Command pack, yes?
If so, navigate to CustomCommands/lua/ulx/modules/sh/cc_cvars.lua and edit
CreateConVar( "donate_url", "http://www.google.com" )
to whatever you need to suit your purposes
-
local CATEGORY_NAME = "Menus"
at the beginning of the ULX script
for donate, I'm assuming you're using the Custom Command pack, yes?
If so, navigate to CustomCommands/lua/ulx/modules/sh/cc_cvars.lua and edit
CreateConVar( "donate_url", "http://www.google.com" )
to whatever you need to suit your purposes
... Or, since it's a convar, just add it to server.cfg.
donate_url "http://google.com"
-
Thanks Guys :D