My RTVSystem works by adding the map names in a file called maplist.txt, but I want to just make it so it goes in maps/ and adds them... Can anyone help me out? Thanks
Code:
[CODE]local cache = {}
local function getmaps()
local m = file.Read("maplist.txt")
if(!cache[1]) then
cache = string.Explode("\r\n",m)
end
return cache
end[/CODE]