Garry's Mod Wiki

MatSelect:OnRightClick

  MatSelect:OnRightClick( Panel pnl )

Description

Called when the player right clicks a material.

By default, this opens a menu that lets the player copy the material path.

Arguments

1 Panel pnl
The DImageButton that was clicked.