Let's talk about oil. Let's take the example of Venezuela that, for all intents and purposes, practically gives its gas away. People pay practically no taxes and practically no value is attached to the production of natural crude.
China was an exporting country. However, two or three years later, it became an importing country. I don't know exactly how it deals with its own production, but it does pay the world price for its imports.
There are very few countries that produce crude oil. As a result, just about everyone tends to pay the world price, except exporting countries such as those in the Middle East, and a few others.