Garry's Mod Wiki

util.GetSurfacePropName

  string util.GetSurfacePropName( number id )

Description

Returns the name of a surface property at given ID.

See also util.GetSurfaceData and util.GetSurfaceIndex for opposite function.

Arguments

1 number id
Surface property ID. You can get it from TraceResult structure.

Returns

1 string
The name or an empty string if there is no valid surface property at given index.