Garry's Mod Wiki

MatSelect:OnSelect

  MatSelect:OnSelect( string material, Panel pnl )

Recently Added

This was recently added in version (2024.09.02). It might only be available on the Dev Branch right now.

Description

Called when the player selects a material.

Arguments

1 string material
Material path of the selected material, not including any file extension.
2 Panel pnl
The DImageButton that was clicked.