I would like to know how vehicles will avoid objects like barriers (road blocks) like in LSPDFR mod etc. When I spawn a barrier or more barriers on a road, for example a highway, vehicles will drive into it, it seems like they don't recognize there is a barrier at their path.. Is there any code which make vehicles avoid those barriers? Also, when they drive into a barrier and can't drive further there will become a traffic jam. When I move further away from the barriers the vehicles can literally drive through the barriers and they won't collide anymore.. When I get more close, the vehicles will collide again.
How to make the cars avoid the barriers and make them always collide regardless your distance from the barrier?