General > Developers Corner
Help with custom ULX command.
kwinkywolf:
Yep, it returns right at the top of the help thing with the following when doing ulx help in console...
Category: Combine F3
o ulx setcredits <player> <credits: 0<=x, default 0> - Sets the target's credit balance to the specified amount. (say: !setcredits)
o ulx setlevel <player> <level: 0<=x, default 0> - Sets the target's level to the specified amount. (say: !setlevel)
o ulx setxp <player> <xp: 0<=x, default 0> - Sets the target's XP to the specified amount. (say: !setxp)
So, i'm absolutely stumped as to why it isn't showing
Timmy:
Small things like that are easily overlooked! :P
The reason why your command does not appear in XGUI is because it was declared on the server side. To avoid any issues, make sure to put your commands in a shared file.
Update
gmod/addons/your_addon_name/lua/ulx/modules/your_file.lua
to
gmod/addons/your_addon_name/lua/ulx/modules/sh/your_file.lua
kwinkywolf:
Woop! Awesome, thanks man that's done the trick. An absolute life saver
Navigation
[0] Message Index
[*] Previous page
Go to full version