I've always wondered why we don't just nationalize our resources and use that income to provide a kind of UBI to residents, similar to what Saudi Arabia or even Alaska does (for residents who plan to stay long term)

Because the resource income is trivial in comparison with national spending. Most of the resources you might be thinking of are already nationalized and rented to industry through a competitive bidding process.