As you live in a borough of NYC and are being evicted due to a code enforcement action, you should qualify for relocation assistance through the Department of Housing Preservation and Development.
Quote Quoting New York City Administrative Code § 26-301. Relocation of tenants.
1. The commissioner of housing preservation and development shall have the power and it shall be his or her duty:

(a) To provide and maintain tenant relocation services

(i) for tenants of real property which the commissioner of housing preservation and development is authorized to maintain and supervise; and

(ii) for tenants of real property acquired for public purposes, excluding real property acquired by or on behalf of the New York city housing authority or the triborough bridge and tunnel authority; and

(iii) for tenants of real property located in any neighborhood improvement district designated by the city planning commission, where the displacement of such tenants results from the enforcement of any law, regulation, order or requirement pertaining to the maintenance and operation of such property or the health, safety and welfare of its occupants; and

(iv) when authorized by the mayor, for the tenants of any privately owned building or other improvement which is to be voluntarily rehabilitated in accordance with an urban renewal plan pursuant to law; and

(v) for tenants of any privately owned building where the displacement of such tenants results from the enforcement of any law, regulation, order or requirement pertaining to the maintanance or operation of such building or the health, safety and welfare of its occupants. Such services shall consist of such activities as he or she may deem necessary, useful or appropriate for the relocation of such tenants, including but not limited to the gathering and furnishing of information as to suitable vacant accommodations, the making of studies and surveys for the purpose of locating such accommodations and the provision of facilities for the registration of such accommodations with the department by owners, lessors and managing agents of real property and others.
* * *