View Single Post
03/18/19, 08:43 AM   #8
Supportic
Join Date: Mar 2019
Posts: 24
So be sure to define a unique name like MyAddonsName = {} instead of Addon = {} (which other addons might use as well).
You use a table like Addon = Addon or {} at the start of several lua files of your project if you want to pass variables etc. to different lua files of your project. This way you can make the files "communicate" with each other.
Just to clarify, am I allowed to do this:

Addon = {
name = "uniqueName"
}

basically the same as:

Addon.name = "uniqueName"

OR

Do you mean the table Addon should not exist because everyone could use the same name and I should choose something like:

uniqueTable = {
addonName = "uniqueName"
}
  Reply With Quote