function getMoveSpeed(heading)
moveSpeed = {x = math.sin(-math.rad(heading)) * 1.050, y = math.cos(-math.rad(heading)) * 1.050, z = -0.000000001}
return moveSpeed
end
function sampev.onSendVehicleSync(data)
local _, veh = sampGetCarHandleBySampVehicleId(data.vehicleId)
if _ then
local heading = getCarHeading(veh)
data.moveSpeed = getMoveSpeed(heading)
end
end