Put the vegetables in layers in a prepared three-liter jar, alternating onions, garlic, carrots, beets and cabbage.
When all the vegetables are stacked, prepare the marinade. Pour sugar into boiling water, then salt, add oil and vinegar. Boil the marinade and gently pour over the cabbage. Cover the cabbage in a jar with a lid, let stand for about 7 hours in a warm place. Then close the jar tightly with a lid and send to the refrigerator. When the pickled cabbage has cooled, you can serve it on the table.