Help with essentialmode and freeroam

How would I reset a players money once they have died? Could anyone help me out with this please

If player dies -> update users set money ‘0’

I don’t know the function to use