To both of you, the wiki is a powerful tool.
That script doesn't check for the element type. It doesn't check if "occupied" is false or actually a car.
Also I don't get the need of this "no-damage" thing.
addEventHandler("onColShapeHit", colshape,
function(hitElement)
if not hitElement then return end
if getElementType(hitElement) == "player" then
hitElement = getPedOccupiedVehicle(hitElement)
elseif getElementType(hitElement) ~= "vehicle" then
return end
end
setElementVelocity(hitElement, 0, 0, 0) --maybe? Not sure what you want, try it out. Not sure if working with peds either.
end
)
Not tested.