Look, It’s a Candid Picture of Ryan Reynolds and Jeff Bridges Shooting R.I.P.D.!
The premise? "A recently slain cop joins a team of undead police officers working for the Rest in Peace Department and tries to find the man who murdered him." So that explains the gun.