Gotta pay your tab at the saloon and the barkeep will give your hat back. 100 sats in tips should do it.