Hey, there is no way that you can do this by altering the script to allow peds to spawn in a specific area (well this is kind of a lie, there is a way, but it would be messier than what I’m about to describe). However I will clarify that the script only prevents peds from spawning, and you could make your own script that checks to see if a player is in that given area and manually spawn your own peds with that script.
Unfortunately I don’t know of any resources out there that will do this, but I have found a post that details spawning a ped and getting them to do a particular action once they have spawned, hopefully you can take what you need from it to get what you’re looking for