Ped ignore player

Hello everyone I am currently working on a script and I am spawning peds and making them walk to locations with TaskPedSlideToCoord but when players bump into them they are missing the location is there anyway to disable maybe their eyes and collision between players and peds?