You can't walk around with guns out as freely as in GTA 5; holding one makes NPCs move away or confront you.