The safe code shows up in the robbery’s map panel once you know it: you find it on a wall map in an office at another robbery, where several codes are written down. You can only get the rifle unnoticed if the people in the room are distracted. More on loot and fights in Illegal Operations.