Cameron Hopper is charged with possession of a deadly weapon with unlawful intent, theft and unlawful contact.
The most serious charge, possession of a deadly weapon with unlawful intent, is punishable by up to five years behind bars.
Get our free mobile app
According to an affidavit of probable cause, Casper police began investigating a reported theft at roughly 2 a.m. Dec. 19.
The affidavit states that Hopper attempted to sell a .22 revolver earlier in the evening. The alleged victim reportedly considered buying it but took his money back.
Later that night, a woman and the alleged victim gave Hopper a ride back to an apartment. When they arrived, Hopper reportedly got out of the vehicle and walked around to where the alleged victim was sitting in the front passenger s seat. The alleged victim reportedly told police that he thought Hopper was going to thank him for the ride, court documents state.