Luiz_Eduardo21 Posted November 25, 2021 Share Posted November 25, 2021 attempt to index field '?' (a nil value) ```lua function FormatTableItens(tablei) TabelaItens = tablei if #tablei ~= 0 then for i, v in ipairs(tablei) do local Item = v.Item => v.Peso = Config.Itens[Item].peso * v.Quantidade end end return TabelaItens end``` Link to comment
Administrators Tut Posted November 25, 2021 Administrators Share Posted November 25, 2021 Welcome to the forums! Locking this as it's not to do with a resource. If you're looking for help with scripting, please use one of these: Scripting section (EN/US) Other languages Link to comment
Recommended Posts