That said, the consensus is actually the opposite - if the government controls large stocks of natural resources, they tend to focus on resource extraction rather than developing their economy or civil society. If you can get foreign engineers to run your mines / oil wells / etc (and you definitely can) you don't even need schools for indigenous engineers to keep things running. This is the "resources curse".
OTOH when you have a pre-existing, well-functioning government & society that happens upon a natural resource windfall, like Norway or North Dakota, it's pure gravy.