Save spawned peds like SNT saves spawned objects

Vintage88

1) A script that would allow me to spawn a bunch of peds, set there task, weapon, etc.. and then save all this to an .ini file or whatever so I can reload it at will. Just like how we can save objects with the simple native trainer.

2) A link that would help me understand the code I'd need to write up to create a script like this.

I've looked around but can't seem to find any resources on GTA native calls and such. Cheers.