General > Developers Corner
How to add !donate to the "Menus" tab in ULX?
Unknown Gamer:
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?
Caustic Soda-Senpai:
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
Unknown Gamer:
--- Quote from: syst3M4TiK on December 31, 2014, 05:55:30 PM ---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
--- End quote ---
I know, What is the code though :P THe code i keep putting in is not working and creates errors.
Caustic Soda-Senpai:
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
--- Code: ---CreateConVar( "donate_url", "http://www.google.com" )
--- End code ---
to whatever you need to suit your purposes
Bytewave:
--- Quote from: syst3M4TiK on December 31, 2014, 10:04:31 PM ---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
--- Code: ---CreateConVar( "donate_url", "http://www.google.com" )
--- End code ---
to whatever you need to suit your purposes
--- End quote ---
... Or, since it's a convar, just add it to server.cfg.
--- Code: ---donate_url "http://google.com"
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version