notarget is a cheat console command that makes you invisible to NPCs and usually NextBots too. They may still be able to determine your location when you do things to make noise, such as shooting or walking.