What is this in script?

Well that isn’t always the case, but it’s a safe one. I’d recommend running your server on a machine you don’t care about.
For example, a separate server in your network. This way, if stuff goes bad, it’s usually segmented to another machine.

If you want to get really paranoid, create a secondary network (using network segmentation) and run the server

For the super paranoid (and smart), consider running the server using someone elses infrastructure. People will suggest zap-hosting as they’re fiveM specific, however, running something off of AWS or Azure has the same effect.

If you’re a greybeard, consider a datacenter in your area to host the server…
Note: All of these options cost money in the ‘host away from home’ category…