When you pass by a policeman with a weapon in his hands, a handcuffs icon will appear and the policeman will start looking at you. After the icon gradually turns yellow, a sound will be heard and it is advisable not to move further. Then one of three reactions will follow:
When you are near the police, you can remove the weapon, or change it to something harmless (camera, spray, etc.) Then the police will lose interest in you. Or it is enough to simply move away to a safe distance from the policeman.
The modification is disabled during missions.
v1.2 (PC)
You can configure: