Inventory Server Cache

Hey everyone,

I am having difficulties troubleshooting what is going on in my code. I am keeping a server table for my inventory and backpack systems with each players respective storage. The problem is that when I try to edit a value inside that table, it has updated in the current function but everywhere else it has not.

function BackpackManager:AddItemToBackpack(player, itemContents)
	serverBackpacks[player]["Weapon"] = itemContents
	print(serverBackpacks)
	updateClientBackpackEvent:FireClient(player, itemContents)
end

output:
ex1

function BackpackManager:GetBackpackSlot(player, slotType)
	print(serverBackpacks)
	return serverBackpacks[player][slotType]
end

output:
ex2

I have no clue what is going on, why is it displaying in that function but elsewhere it is not? If you could help it would be greatly appreciated!

Thanks,
deshea9