Cats & dogs

I am currently writing a resource to spawn wild animals.
It’s nearly finished but cats and dogs are missing still.
I think I had a script once that spawned dogs occasionally to follow pedestrians.
Does anyone know how it is called?

Maybe this could help?