💬

Community answer

Collected from the ACE community Discord archive around 2022-03-12. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Storing functions in a table

🌙 LuaUpdated 2 days ago•0 views
No - local commands = {["add"]=function(a,b) ... end} works, and you can also assign named functions later: commands.add = function(...) end.

Does a function in a table have to be defined inline

No - local commands = {["add"]=function(a,b) ... end} works, and you can also assign named functions later: commands.add = function(...) end.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.