Garry's Mod Wiki

DFileBrowser:OnSelect

  DFileBrowser:OnSelect( string filePath, Panel selectedPanel )

Description

Called when a file is selected.

Arguments

1 string filePath
The path to the file that was selected.
2 Panel selectedPanel
The panel that was clicked to select this file.

This will either be a DListView_Line or SpawnIcon depending on whether the model viewer mode is enabled. See DFileBrowser:SetModels.