Gravity is a fundamental force. I understand why you asked the question, as the answers are challenging. Gravity does not depend upon velocity, nor does friction make gravity work.
The force of gravity affects systems of mass due to the acceleration it creates in a system.