Fact1: Walker decides to submit it as evidence, Fact2: Time stops around Nick, Fact3: R.I.P.D. is responsible for finding and returning souls, Fact4: Nick appears as old Chinese man, Fact5: he and Hayes possession of had stolen gold
Output: Boston Police Department officers Detective Sergeant Nick Walker and Detective Lieutenant Bobby Hayes discover and steal several shards of gold while on duty. Nick buries his share under an orange tree sapling in his garden; his wife, Julia, thinks that the tree is a surprise gift and mentions how content she is with their life together. Nick realizes that they dont need the gold, and decides to submit it as evidence. During a raid later on Hayes tells Nick that he cant let him turn in the gold, Hayes then shoots and kills Nick. Time stops around Nick and he is drawn into a vortex in the sky. In the afterlife, as penance for his thievery, Nick is recruited for the R.I.P.D. The Rest In Peace Department. The R.I.P.D. is responsible for finding and returning souls who refuse to move on to the afterlife. Left unchecked, these souls become deados, monsters disguised as humans. He is partnered with Roycephus Roy Pulsipher, a former U.S. Marshal and participant in the American Civil War. Their first stop is at a cemetery to watch Nicks funeral, and Nick attempts to make his presence known to Julia but is not recognized. Roy explains that R.I.P.D. officers are given new identities and appearances to prevent them from revealing that the afterlife exists. Nick appears as an old Chinese man while Roy appears as a beautiful blond woman. On his first field mission, Nick aids Roy in interrogating a suspected deado and discovers the perpetrator is in possession of gold like he and Hayes had stolen. Nick and Roy submit the gold as evidence before visiting one of Roys informants. Nick tricks the informant into revealing Hayes as his contact. They follow Hayes to Nicks old house, where he discovers Nicks stolen gold. Roy and Nick track Hayes and observe him handing the gold off to a deado whom they stop and interrogate. The deado overpowers them, taking the gold and transforming into a hulking monster that leads them on a chase through the city that attracts the attention of normal humans and causes a panic. R.I.P.D. Chief Mildred Proctor receives orders to remove Roy and Nick from the case and from active duty due to this exposure. Proctor learns from Eternal Affairs that the gold could be used to construct the Staff of Jericho, which will reverse the flow of souls from earth to the afterlife. Roy and Nick argue, and Nick leaves by himself to try again to reveal himself to Julia. Roy tails him and they argue but finally make amends and decide to work together to stop whatever Hayes is planning. They discover that Hayes is a deado and arrest him, but a confiscated item of his freezes the whole department. Hayes and a group of deados escape with the remainder of the gold and assemble the Staff of Jericho an Obelisk of gold. Hayes takes Julia hostage and stabs her as a necessary human sacrifice to activate the staff. A battle ensues; Pulsipher destroys the Staff of Jericho, and Nick exacts his revenge on Hayes. Close to death, Julia sees Nick for who he is; and they share a tearful farewell. Later, Proctor informs Nick that Julia will live. She reinstates them both fully, though she adds 53 years to Roys term in the R.I.P.D. due to her revealed affections for him. As a reward, Roy gives Nick a new appearance, but he is dismayed to find it is that of a Girl Scout.