Garry's Mod Wiki


DButton:SetMaterial( IMaterial img = nil )

Just Added

This was just added in the latest version (2020.08.12). It might only be available on the Dev Branch right now.


Sets an image to be displayed as the button's background.

See DButton:SetImage for equivalent function that uses file paths instead. Also see DImageButton.


1 IMaterial img = nil
The material to use. If this is nil, the image background is removed.

Page Links

Special Pages



Render Time: 25ms

DB GetPage 2
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 8