ANSWER:
You need first to know what is the percentage of your investment from the whole capital so that when you want out, you can estimate the actual value of the establishment and estimate your own capital accordingly.
There must be no guarantee that your capital investment is guaranteed back. Your profit must be a percentage from the profit and not from the capital invested.
If this is possible, then such investments are ok.