If you want to make a gta style npc you could code behaviours into the npc. If you use Unity you could code State machine behaviours to control the npc
https://docs.unity3d.com/Manual/StateMachineBehaviours.html