What you're talking about can work on a small scale; on the family and tribal level. But for a modern industrialized society, money, and more specifically the price system, is necessary for coordinating the actions of multitudes of people who do not interact on an intimate basis. A lot of people see problems with the current monetary systems of the world, but as I stated in this post, the problems associated with it today are due to state interference in money. To better understand the coordinating function of the price system in a large-scale economy, with all the myriad goods and services with complicated and long-term production processes, that are produced and distributed throughout society, I highly suggest reading the short story, "I, Pencil" by Leonard Read: https://fee.org/resources/i-pencil-audio-pdf-and-html/
For more advanced reading on this subject, look into F.A. Hayek and his work on the 'knowledge problem', and Ludwig Von Mises' work on the 'socialist calculation problem'.
RE: Money and Law