Garry's Mod Wiki

presets.Exists

  boolean presets.Exists( string type, string name )

Description

Returns whether a preset with given name exists or not

Arguments

1 string type
The preset group name, usually it's tool class name.
2 string name
Name of the preset to test

Returns

1 boolean
true if the preset does exist