With this script, you can add residents of San Andreas. For each ped, a gait style is set, belonging to a certain group of residents of San Andreas (a prostitute, a cop, a gangster of any group, etc.).
In the second version added: 1) The number of added peds is not limited; 2) Only pedestrians can be added to the game; 3) You can only add driver peds to the game; 4) You can add pedestrians and driver peds together to the game; 5) The script has explanations for those who study GTA scripting.