Hey everyone,
I know this may be probably...the most used question in all of Facepunch, but I simply can not find a solution to my problem. I'm trying to put this force download on my server, a overlay and I know it's kind of working because what happens is that the screen has that checkerboard purple and pink dots, but the problem is the material won't work. What I'm doing is putting the file forcedownloads.lua:
[CODE]
if (SERVER) then
resource.AddFile( "lua/autorun/overlay.lua" )
resource.AddFile( "materials/gradients/aroundgradient.vtf" )
resource.AddFile( "materials/gradients/aroundgradient.vtm" )
AddCSLuaFile("forcedownloads.lua")
end
[/CODE]
And I put that in the lua/autorun/server file of course. But it does not seam to work. Any help please?
My version may be outdated, but remove the 1st, 2nd, 5th and 6th line and make sure you have the file in lua/autorun/
So like this?
[CODE]
resource.AddFile( "materials/gradients/aroundgradient.vtf" )
resource.AddFile( "materials/gradients/aroundgradient.vtm" )
[/CODE]
Sadly it doesn't work. Which is really strange.
vmt not vtm
also I don't think you can add lua files as resources like that?
edit: actually you dont even need to add the vtf file unless you are doing addsinglefile, just the vmt and it will add whichever file it points to