The first depends on you creating your own sims and assigning the roles to them which is a frustrating process and there are so many different roles with required traits or skills. With the second mod, it will pull from the unplayed sims already in your hood.
Putting these in place prevents ANY townie generation. These aren’t the perfect solution, far from it. In a modded game, on the other hand, there is the Reduced Random Townies mod by AKLSimmer and the NPC Control mod by Paulson. I’m sorry to say that in a vanilla game the only option is to delete the sims you don’t want. In the previous part, I discussed my reasoning for wanting to limit townie generation.