A 5.0 magnitude earthquake was detected in western Texas Friday night, according to the United States Geological Survey.