Garry's Mod Wiki

Player:SetNoTarget

  Player:SetNoTarget( boolean visibility )

Description

Sets the players visibility towards NPCs.

Internally this toggles the FL_NOTARGET flag, which you can manually test for using Entity:IsFlagSet

Arguments

1 boolean visibility
The visibility.