Garry's Mod Wiki

Entity:IsNPC

  boolean Entity:IsNPC()

Description

Checks if the entity is an NPC or not.

This will return false for NextBots, see Entity:IsNextBot for that.

Returns

1 boolean
Whether the entity is an NPC.