Why don't they borrow $250k from somewhere else and pay you?
Spoiler: because it's easier and cheaper for them to sucker you into doing work for IOUs.
Ask for the cash or a piece of the company. Once you hand over the code, you don't have a lot of leverage.