Garry's Mod Wiki

Garry's Mod Wiki

  number util.GetSurfaceIndex( string surfaceName )

Description

Returns the matching surface property index for the given surface property name.

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

Arguments

1 string surfaceName
The name of the surface.

Returns

1 number
The surface property index, or -1 if name doesn't correspond to a valid surface property.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...