My table isn't
local weapons = {
{ 1, 2},
{6666, 21312},
{1231, 423542},
}
It is like this:
local Cart = { weapons = { }, prices = { } }
local weaponID = getWeaponIDFromName(weapon)
table.insert(Cart.weapons, weaponID) --When table is empty this happen
table.insert ( Cart.weapons, { Cart.weapons, weaponID } ) --When table is not empty this happen