-
Notifications
You must be signed in to change notification settings - Fork 3
Commands
lnx00 edited this page Jan 6, 2023
·
1 revision
Allows you to easily register custom console commands.
-
.Register(name, callback)
Registers a new command with the given name. The callback is a function with anargs
parameter that contains a Deque of all args. -
.Unregister(name)
Unregisters the command. Do this before unloading your script.
Commands.Register("mycmd", function(args)
print("Command executed with arg: " .. args:popFront())
end)