How to host a FiveM server resources on a Separate VPS (IP) from the main server?

Currently, I’m working on the server but Some haters are continuously using (DDoS) to take down our server, Now I’m thinking what If I post all the resources on a Different server and then turn off the TCP on the main server and I’ll use my 2nd server to download assets or something similar if anybody knows anything about it or like how to do it, Please help me with a detailed explanation, Thanks