Garry's Mod Wiki

duplicator.Disallow

  duplicator.Disallow( string classname )

Description

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

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.