You need to fix the UV coordinates.
You can tell from the texture coordinate editor that it's all messed up, so what needs to be done is to unwrap the side of the gun and then move it in the texture coordinate editor until the mesh fits perfectly the texture.