Resource.lua - Can you check if its correct please? :



//	function.AddFile("
//Maps
	function.AddFile("maps/rp_downtown_v4c.bsp")
end
//Models
	function.AddFile("models/player/magnusson.dx90.vtx")
	function.AddFile("models/player/magnusson.mdl")
end
//Others
	function.AddFile("data/evolvemotd2.txt")
end
//Drugz Mod 
	function.AddFile("models/boxopencigshib.dx80.vtx")
	function.AddFile("models/boxopencigshib.dx90.vtx")
	function.AddFile("models/boxopencigshib.mdl")
	function.AddFile("models/boxopenshib.dx80.vtx")
	function.AddFile("models/boxopenshib.dx90.vtx")
	function.AddFile("models/boxopenshib.mdl")
	function.AddFile("models/closedboxshib.dx80.vtx")
	function.AddFile("models/closedboxshib.dx90.vtx")
	function.AddFile("models/closedboxshib.mdl")
	function.AddFile("models/cocn.dx80.vtx")
	function.AddFile("models/cocn.dx90.vtx")
	function.AddFile("models/cocn.mdl")
	function.AddFile("models/pissedmeoff.dx80.vtx")
	function.AddFile("models/pissedmeoff.dx90.vtx")
	function.AddFile("models/pissedmeoff.mdl")
		function.AddFile("models/drug_mod/alcohol_can.dx80")
		function.AddFile("models/drug_mod/alcohol_can.dx90")
		function.AddFile("models/drug_mod/alcohol_can.mdl")
		function.AddFile("models/drug_mod/the_bottle_of_water.dx80.vtx")
		function.AddFile("models/drug_mod/the_bottle_of_water.dx90.vtx")
		function.AddFile("models/drug_mod/the_bottle_of_water.mdl")
		function.AddFile("models/ipha/mushroom_small.dx80.vtx")
		function.AddFile("models/ipha/mushroom_small.dx90.vtx")
		function.AddFile("models/ipha/mushroom_small.mdl")
		function.AddFile("models/jaanus/aspbtl.dx80.vtx")
		function.AddFile("models/jaanus/aspbtl.dx90.byc)"
		function.AddFile("models/jaanus/aspbtl.mdl")
				function.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.dx80.vtx")
				function.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.dx90.vtx")
				function.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl")
			function.AddFile("models/katharsmodels/syringe_out/syringe_out.dx80.vtx")
			function.AddFile("models/katharsmodels/syringe_out/syringe_out.dx90.vtx")
			function.AddFile("models/katharsmodels/syringe_out/syringe_out.mdl")
				function.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.dx80.vtx")
				function.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.dx90.vtx")
				function.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.xbox.vtx")
				function.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.sw.vtx")
				function.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.mdl")
		function.AddFile("models/smile/smile.dx80.vtx")
		function.AddFile("models/smile/smile.dx90.vtx")
		function.AddFile("models/smile/smile.sw.vtx")
		function.AddFile("models/smile/smile.xbox.vtx")
		function.AddFile("models/smile/smile.mdl")
		function.AddFile("materials/highs/shader3.vmt")
		function.AddFile("materials/highs/shader3.vtf")
		function.AddFile("materials/highs/shader3_dudv.vmt")
		function.AddFile("materials/highs/shader3_dudv.vtf")
		function.AddFile("materials/highs/shader3_normal.vmt")
		function.AddFile("materials/highs/shader3.normal.vtf")
		function.AddFile("materials/ipha/mushd.vmt")
		function.AddFile("materials/ipha/mushd.vtf")
		function.AddFile("materials/jaanus/aspbtl_a.vmt")
		function.AddFile("materials/jaanus/aspbtl_a.vtf")
		function.AddFile("materials/jaanus/aspbtl_.vmt")
		function.AddFile("materials/jaanus/aspbtl_.vtf")
		function.AddFile("materials/katharsmodels/syringe_body.vmt")
		function.AddFile("materials/syringe_out/syringe_body.vtf")
		function.AddFile("materials/syringe_out/syringe_body_mask.vtf)"
		function.AddFile("materials/syringe_out/syringe_grip.vtf")
		function.AddFile("materials/syringe_out/syringe_liquid.vtf")
		function.AddFile("materials/syringe_out/syringe_lowerstopper.vtf")
		function.AddFile("materials/syringe_out/syringe_needle.vtf")
		function.AddFile("materials/syringe_out/syringe_stopper.vtf")
		function.AddFile("materials/syringe_out/syringe_tip.vtf")
		function.AddFile("materials/syringe_in/syringe_body.vmt")
		function.AddFile("materials/syringe_in/syringe_grip.vmt")
		function.AddFile("materials/syringe_in/syringe_liquid.vmt")
		function.AddFile("materials/syringe_in/syringe_lowerstopper.vmt")
		function.AddFile("materials/syringe_in/syringe_needle.vmt")
		function.AddFile("materials/syringe_in/syringe_stopper.vmt")
		function.AddFile("materials/syringe_in/syringe_tip.vmt")
		function.AddFile("materials/contraband/contraband_normal.vtf")
		function.AddFile("materials/contraband/contraband_one.vtf")
		function.AddFile("materials/contraband/contraband_two.vmt")
		function.AddFile("materials/killicons/durgz_aspirin_killicon.vtf")
		function.AddFile("materials/killicons/durgz_caffeine_killicon.vtf")
		function.AddFile("materials/killicons/durgz_cigarette_killicon.vtf")
		function.AddFile("materials/killicons/durgz_cocaine_killicon.vtf")
		function.AddFile("materials/killicons/durgz_ecstasy_killicon.vtf")
		function.AddFile("materials/killicons/durgz_heroine_killicon.vtf")
		function.AddFile("materials/killicons/durgz_lsd_killicon.vtf")
		function.AddFile("materials/killicons/durgz_mushroom_killicon.vtf")
		function.AddFile("materials/killicons/durgz_opium_killicon.vtf")
		function.AddFile("materials/killicons/durgz_pcp_killicon.vtf")
		function.AddFile("materials/killicons/durgz_weed_killicon.vtf")
		function.AddFile("materials/smile/smile.vtf")
		function.AddFile("materials/VGUI/durgz_aspirin.vtf")
		function.AddFile("materials/VGUI/durgz_caffeine.vtf")
		function.AddFile("materials/VGUI/durgz_cigarette.vtf")
		function.AddFile("materials/VGUI/durgz_cocaine.vtf")
		function.AddFile("materials/VGUI/durgz_ecstasy.vtf")
		function.AddFile("materials/VGUI/durgz_heroine.vtf")
		function.AddFile("materials/VGUI/durgz_lsd.vtf")
		function.AddFile("materials/VGUI/durgz_mushroom.vtf")
		function.AddFile("materials/VGUI/durgz_opium.vtf")
		function.AddFile("materials/VGUI/durgz_pcp.vtf")
		function.AddFile("materials/VGUI/durgz_weed.vtf")
		function.AddFile("materials/VGUI/durgzmod/awesomeface.vtf")

end



//Wiremod
function.AddFile("settings/render_targets/WireGPU_RT_1.txt")
function.AddFile("settings/render_targets/WireGPU_RT_2.txt")
function.AddFile("settings/render_targets/WireGPU_RT_3.txt")
function.AddFile("settings/render_targets/WireGPU_RT_4.txt")
function.AddFile("settings/render_targets/WireGPU_RT_5.txt")
function.AddFile("settings/render_targets/WireGPU_RT_6.txt")
function.AddFile("settings/render_targets/WireGPU_RT_7.txt")
function.AddFile("settings/render_targets/WireGPU_RT_8.txt")
function.AddFile("settings/render_targets/WireGPU_RT_9.txt")
function.AddFile("settings/render_targets/WireGPU_RT_10.txt")
function.AddFile("settings/render_targets/WireGPU_RT_11.txt")
function.AddFile("settings/render_targets/WireGPU_RT_12.txt")
function.AddFile("settings/render_targets/WireGPU_RT_13.txt")
function.AddFile("settings/render_targets/WireGPU_RT_14.txt")
function.AddFile("settings/render_targets/WireGPU_RT_15.txt")
function.AddFile("settings/render_targets/WireGPU_RT_16.txt")
function.AddFile("settings/render_targets/WireGPU_RT_17.txt")
function.AddFile("settings/render_targets/WireGPU_RT_18.txt")
function.AddFile("settings/render_targets/WireGPU_RT_19.txt")
function.AddFile("settings/render_targets/WireGPU_RT_20.txt")
function.AddFile("settings/render_targets/WireGPU_RT_21.txt")
function.AddFile("settings/render_targets/WireGPU_RT_22.txt")
function.AddFile("settings/render_targets/WireGPU_RT_23.txt")
function.AddFile("settings/render_targets/WireGPU_RT_24.txt")
function.AddFile("settings/render_targets/WireGPU_RT_25.txt")
function.AddFile("settings/render_targets/WireGPU_RT_26.txt")
function.AddFile("settings/render_targets/WireGPU_RT_27.txt")
function.AddFile("settings/render_targets/WireGPU_RT_28.txt")
function.AddFile("settings/render_targets/WireGPU_RT_29.txt")
function.AddFile("settings/render_targets/WireGPU_RT_30.txt")
function.AddFile("settings/render_targets/WireGPU_RT_31.txt")
function.AddFile("settings/render_targets/WireGPU_RT_32.txt")
function.AddFile("materials/expression2/cog.vtf")
function.AddFile("materials/expression2/cog.vmt")
function.AddFile("materials/expression2/cog_world.vmt")
function.AddFile("materials/VGUI/entities/laserPointer.vtf")
function.AddFile("materials/VGUI/entities/laserPointer.vmt")
function.AddFile("materials/Holograms/torus3.mdl")
function.AddFile("materials/Holograms/hqsphere.mdl")
function.AddFile("materials/Holograms/hqtorus2.mdl")
function.AddFile("materials/Holograms/torus.mdl")
function.AddFile("materials/Holograms/cylinder.mdl")
function.AddFile("materials/Holograms/cube.mdl")
function.AddFile("materials/Holograms/icosphere2.mdl")
function.AddFile("materials/Holograms/hqtorus.mdl")
function.AddFile("materials/Holograms/prism.mdl")
function.AddFile("materials/Holograms/dome.mdl")
function.AddFile("materials/Holograms/tetra.mdl")
function.AddFile("materials/Holograms/dome2.mdl")
function.AddFile("materials/Holograms/sphere3.mdl")
function.AddFile("materials/Holograms/sphere2.mdl")
function.AddFile("materials/Holograms/pyramid.mdl")
function.AddFile("materials/Holograms/cone.mdl")
function.AddFile("materials/Holograms/hqjcosphere.mdl")
function.AddFile("materials/Holograms/plane.mdl")
function.AddFile("materials/Holograms/icosphere3.mdl")
function.AddFile("materials/Holograms/hqcylinder.mdl")
function.AddFile("materials/Holograms/sphere.mdl")
function.AddFile("materials/Holograms/torus2.mdl")
function.AddFile("materials/Holograms/icosphere.mdl")
function.AddFile("materials/Holograms/hqsphere2.mdl")
function.AddFile("materials/Holograms/hqcylinder2.mdl")
function.AddFile("materials/Holograms/hqcone.mdl")

end

//keypadandcracker
function.AddFile("lua/entities/sent_keypad/shared.lua")
function.AddFile("lua/entities/sent_keypad/cl_init.lua")
function.AddFile("lua/entities/sent_keypad/init.lua")
function.AddFile("lua/entities/sent_keypad_wire/shared.lua")
function.AddFile("lua/entities/sent_keypad_wire/cl_init.lua")
function.AddFile("lua/entities/sent_keypad_wire/init.lua")
function.AddFile("lua/weapons/gmod_tool/stools/keypad.lua")
function.AddFile("lua/weapons/gmod_tool/stools/keypad_adv.lua")
function.AddFile("lua/weapons/gmod_tool/stools/keypad_wire.lua")
function.AddFile("lua/weapons/keypad_cracker/shared.lua")

end

//connas tools
function.AddFile("lua/entities/gmod_timer/cl_init.lua")
function.AddFile("lua/entities/gmod_timer/init.lua")
function.AddFile("lua/entities/gmod_timer/shared.lua")
function.AddFile("lua/entities/gmod_toggleablehoverball/cl_init.lua")
function.AddFile("lua/entities/gmod_toggleablehoverball/init.lua")
function.AddFile("lua/entities/gmod_toggleablehoverball/shared.lua")
function.AddFile("lua/weapons/stools/fadingdoor.lua")
function.AddFile("lua/weapons/stools/positionswitcher.lua")
function.AddFile("lua/weapons/stools/rotator.lua")
function.AddFile("lua/weapons/stools/timer.lua")
function.AddFile("lua/weapons/stools/toggleablehoverballs.lua")


end

Is this a proper resource.lua file? Cause some of my players aren’t downlaoding what they need to. I followed the instructions for FastDL at garrysmod.org and I put addons into it’s own folder. eg: cars/models/car.mdl
i did models/car.mdl

Is this correct? If not, how can I fix it, or how can I use fastdl on Brohoster? :stuck_out_tongue:

Thanks guys!

correct my if im wrong, isnt it **[Resource.AddFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Resource.AddFile)**
for all Non-Lua Things (other then Maps)
and for all LUA isnt it: **[G.AddCSLuaFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=G.AddCSLuaFile)**

Oh! Yes that’s true, maybe that’s my issue, thanks for the response too!

On AddCSLuaFile you dont need the lua/ path, the weapons etc should also handle the downloading themselves…

You don’t need the ends either

Where did you even see the code to do this?

It makes no logical sense…

damn thats almost as much forced download files as my server lol

“function.AddFile(“maps/rp_downtown_v4c.bsp”)”

Don’t send the map, it does it already.

^^ yeah redundant… set up a fast dl server for maps, and large files.

would be nice if it would just download the contents of a folder instead of individual files… oh well

At Brohoster, we have an automated FastDL system, you shouldn’t have to be setting anything up.

Im scared that brohost is slower, that’s all.