NBA YoungBoy is finally sprung from jail -- after several months behind bars in his federal gun case -- but he had to drop some serious coin to make it happen.
The rapper's attorneys, Drew Findling and Andre Belanger, tell TMZ ... NBA YB was released on bond Tuesday after forking over $500k in cash. The St. Martin Parish Sheriff's Office, which had the rapper in custody since March, confirms they've handed him his walking papers.
YoungBoy might be rejoicing about regaining his freedom until he stands trial ... but he's on a tight leash. He's gotta keep his nose clean -- or else he'll land right back in a cell.
His legal team tells us a condition of YoungBoy's release includes home confinement in Utah, where his location is being monitored. How exactly they'll keep track of him isn't quite clear -- whether it's electronic or physical surveillance -- but we're told the authorities are keeping tabs.
TMZ broke the story ... cops had to use a K-9 unit here in L.A. to wrangle YoungBoy after he allegedly evaded a traffic stop and spurred a police chase.
He's been indicted by a grand jury on charges of possessing a firearm as a felon and possessing a firearm not registered to him.