All that gun-toting and flexin on social media done caught up to Soulja Boy.
The rapper was arrested for violating his probation after cops found guns in his home.
Law enforcement sources tell TMZ they paid a visit to Soulja's Hollywood Hills home Thursday on a tip Soulja had been threatening people online with guns. Cops showed up, searched
his house and we're told they found a gun inside ... so Soulja was arrested.
You'll recall ... Soulja's on probation right now for his loaded gun case from a couple years ago ... and he's not allowed to have any weapons on him.
As we reported...Soulja's made numerous threats to people on social media lately.
The story is developing...