The server-side function passes %client.curMoney
But the client-side function accepts %client and tries to reference curMoney off the object.
So there's a mismatch of what the two functions are handling.
Change the client function argument to something like money, and change the setText argument in that function to the same name as you just changed the function argument to.
Also, you can't pass objects between client and server functions, the reciever will just get the number that the sender associates with that object, instead of the full object. I'm sure you were trying to do that, though