Trying to add some pictures to my fastdl. My addons require them, but its not working
Lua File:
resource.AddFile("materials/young_envision/level/levelhud_main.png")
resource.AddFile("materials/young_envision/level/levelhud_end.png")
resource.AddFile("materials/young_envision/level/levelhud_start.png")
resource.AddFile("materials/close.png")
resource.AddFile("materials/custom.png")
resource.AddFile("materials/player.png")
resource.AddFile("materials/stations.png")
resource.AddFile("materials/youtube.png")
Thanks
[code]
if (SERVER) then
resource.AddSingleFile( "materials/blah/this.png" )
end
[/code]
File should be saved in lua/autorun/server
name it anything but for convenience name it like resouce.lua or fastdownloads.lua
resource.AddSingleFile -> only sends one item to the download list
resource.AddFile -> Will basically send data to download other materials. its normally used for models with files like .vdf
resource.AddWorkshop -> add's a workshop ID to be downloaded to the client.
What would I use to add a map?
You are better off just compressing the map and uploading it to the fastdl server. adding it to a resource.lua really isn't recommended unless you are just on one map.
but it would be the same thing resource.AddSingleFile( "maps/mapname.bsp" )
Sorry, you need to Log In to post a reply to this thread.