Explain this?

I think we used to say; " not for a million bucks", when asked or told what to do, and we were totally against it. Or, "I wouldn't do that for all the gold in Ft. Knox"
Ima guessing they are related.
But since it's a double negative, maybe it just means
" pay me something, I ain't doing it for nothing."
IDK, jus guessing.