Commands - lnx00/Lmaobox-Library GitHub Wiki
LNXlib.Utils.Commands
Allows you to easily register custom console commands.
Functions
.Register(name, callback)Registers a new command with the given name. The callback is a function with anargsparameter that contains a Deque of all args..Unregister(name)Unregisters the command. Do this before unloading your script.
Example
Commands.Register("mycmd", function(args)
print("Command executed with arg: " .. args:popFront())
end)