Hello, when a lawyer signs an "entrustment agreement" with a client, he will of course add clauses to protect himself
For example, he will sign an "entrustment of a lawyer to collect payment", so the court will enforce it. The money will be transferred to the account designated by the lawyer
So when the court gets the money, it will usually notify the lawyer as soon as possible, so that the lawyer knows the amount and collects his own labor income.