Garry's Mod Wiki

MatSelect:OnRightClick

  MatSelect:OnRightClick( 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 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.