Garry's Mod Wiki

duplicator.Disallow

  duplicator.Disallow( string classname )

Description

Disallow this entity to be duplicated. Opposite of duplicator.Allow.

By default, all classes are disallowed to be duplicated. This function is useful for temporarily disabling duplication of certain entity classes that may have been previously allowed.

Arguments

1 string classname
An entity's classname to disallow duplicating.