string GetFilePattern(number category, boolean save = false)
Parameter | Description |
---|---|
category | can be any combination of the constants below |
save | true for a save file dialog or false for an open file dialog |
The following constants can be combined in the category parameter:
local pattern = GetFilePattern(FILECATEGORY_MODEL | FILECATEGORY_TEXTURE)
RequestFile("Open File", "", pattern)