Print all maps in a Derma List.

Hey, I’m currently trying to print the entire map list in a Derma List, heres my code:

local SheetItemTwo = vgui.Create( "DListView" )
		SheetItemTwo:SetParent(MainPanel)
		SheetItemTwo:SetPos(25, 50)
		SheetItemTwo:SetSize(400, 390)
		SheetItemTwo:SetMultiSelect(false)
		SheetItemTwo:AddColumn("Name")
		
		
		local list = file.Find("*","GAME","")
			for _, f in pairs(list) do
				SheetItemTwo:AddLine( f )
			end

The only problem I’m having is with this like:

local list = file.Find("*","GAME","")

I cant seem to navigate to the maps folder!

Thanks!

Try this:

[LUA]
local list = file.Find(“maps/*.bsp”, “GAME”)
[/LUA]

Ha, I feel stupid. Thanks for the help!