local sampev = require 'lib.samp.events'
--{'onSetVehiclePosition', {vehicleId = 'uint16'}, {position = 'vector3d'}}
function sampev.onSetVehiclePosition(vehId, pos)
if isCharInAnyCar(PLAYER_PED) then
local result, id = sampGetVehicleIdByCarHandle(storeCarCharIsInNoSave(PLAYER_PED))
if result then
if id == vehId then
print('Сервер попытался телепортировать вашу машину. X: '..pos.x, 'Y: '..pos.y, 'Z: '..pos.z)
return false
end
end
end
end