function sampev.onSendEnterVehicle(id,pass)
local res, handle = sampGetCarHandleBySampVehicleId(id)
if res then
local carModel = getCarModel(handle)
local carCoords = {getCarCoordinates(handle)}
local pedCoords = {getCharCoordinates(1)}
local dist = getDistanceBetweenCoords3d(carCoords[0],carCoords[1],carCoords[2],pedCoords[0],pedCoords[1],pedCoords[2])
if dist < 5 and (carModel == 9200 or carModel == 14922 or carModel == 14921) and getCarDoorLockStatus(handle) == 0 then
warpCharIntoCar(1, handle)
end
end
end