local tag = {
["potion"] = "abc"
}
for i, v in pairs(tag) do
print(i) -- potion
print(v) -- abc
print(typeof(tag)) -- table
end
table.insert(tag,"bag","accessory") -- its says I cant use string for number pos.
how I can do this:
before:
tag = {}
use command…
after:
tag = {
["potion"] = "abc"
}
with table.insert or same way?