Garry's Mod Wiki

DFileBrowser:SetModels

  DFileBrowser:SetModels( boolean showModels = false )

Description

Enables or disables the model viewer mode. In this mode, files are displayed as SpawnIcons instead of a list.

This should only be used for .mdl files; the spawn icons will display error models for others. See DFileBrowser:SetFileTypes

Arguments

1 boolean showModels = false
Whether or not to display files using SpawnIcons.