Wrong assumption. Were the resources infinite would that mean there would be an infinite number of people living on the Earth. You can only have a limited number of gold bars from which you can craft statues. You're right that if a particular resource gets exhausted another one may take its place. However, we deal with limited number of resources. So, basically, they can't get replaced forever.Money is only one part of wealth. But also, for all intents and purposes, resources are infinite. A particular resource may become exhausted, but some other resource or source will take its place. Also, humankind's labor is a resource that (hopefully) will be available forever. For example: If I craft my gold bar into a statue that others appreciate, I have added value (or wealth) to the system.
The only "inexhaustible" resource is the solar energy but even it will deplete in some gazillion years. We won't be alive when that happen but, hopefully, the mankind will have settled down on another resource-rich planet by then.