I need the help of a lawyer, and a friend who doesn't know me very well wants to take a job privately. Does this kind of work that has not been accepted by his law firm have legal effect?

The works that are not accepted by his law firm in the lawsuit are legally effective. The parties and legal representatives may entrust one or two persons as agents ad litem. Including lawyers and grassroots legal service workers; Close relatives or staff members of the parties concerned; As plaintiffs or defenders, citizens recommended by the communities, units and relevant social organizations where the parties are located may participate in litigation in accordance with the procedures and rights prescribed by law. The relevant laws and regulations are as follows: People's Republic of China (PRC) Civil Procedure Law

Article 58 Entrusted Agent

The parties and legal representatives may entrust one or two persons as agents ad litem. The following persons may be entrusted as agents ad litem: (1) lawyers and grassroots legal service workers;

(2) close relatives or staff members of the parties concerned; ?

(3) citizens recommended by the community, unit and relevant social organizations where the parties are located.

Extended data:

People's Republic of China (PRC) Criminal Procedure Law

Article 33

A criminal suspect or defendant may entrust one or two persons as defenders in addition to exercising their right of defense. The following persons may be entrusted as defenders:

(1) lawyers; ?

(2) a person recommended by a people's organization or the unit to which the criminal suspect or defendant belongs;

(3) guardians, relatives and friends of criminal suspects and defendants. A person who has been sentenced to punishment according to law or deprived of or restricted personal freedom shall not act as a defender. A person who has been dismissed from public office or has his lawyer's or notary's practice certificate revoked may not act as a defender, except the guardian or near relative of the criminal suspect or defendant.