I don't remember much about GTA4 - it was too long time ago. But in GTAV there is "popgroups.ymt" file that contains lists of ped models names organized in spawn groups (gangs, civilians in certain locations, etc.). Maybe GTA4 had had something similar....