Garry's Mod Wiki

NPC:CapabilitiesHas

  NPC:CapabilitiesHas( number capabilities )

Recently Added

This was recently added in version (2025.09.01). It might only be available on the Dev Branch right now.

Description

Checks, if the NPC has the specified capabilities.

Arguments

1 number with CAP enum capabilities
Capabilities to check, see CAP enum.