The history[1] section in the README file contains a description of how they did it. In summary, it seems they debugged GTA3 and wrote their stub implementations until the game was all reimplemented, presumably with only the assets from Rockstar’s GTA3.
[1] https://github.com/halpz/re3?tab=readme-ov-file#history