A bikie who stole an imitation gun and sold it for drugs while believing it was a real gun will spend time in jail.