Cast0
(Cast0)
#1
Basically I want to add a variable into a table, as seen below, but the name of it always defaults to 1 when add into it.
This is before and after I add the value I want into the table
local NewItem = {
Name = ItemName,
Value = false,
}
table.insert(PlayerTable, NewItem)
1 Like
What you have here is a dictionary, a key and a value pair.
Rather than doing table.insert
you would just set it like this:
PlayerTable["ItemName"] = NewItem
3 Likes
system
(system)
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.