resource.AddFile("") questions

Hey, guys. Im getting fedup with my vehicle script. Can you please take a look?


//	function.AddFile("
//Maps
	function.AddFile("maps/rp_downtown_v4c.bsp")
//Others
	function.AddFile("data/evolvemotd2.txt")
//Drugz Mod 
	function.AddFile("models/boxopencigshib.dx80.vtx")
	function.AddFile("models/boxopencigshib.dx90.vtx")
	function.AddFile("models/boxopencigshib.mdl")
	function.AddFile("models/boxopencigshib.sw.vtx")
	function.AddFile("models/boxopencigshib.xbox.vtx")
	function.AddFile("models/boxopenshib.dx80.vtx")
	function.AddFile("models/boxopenshib.dx90.vtx")
	function.AddFile("models/boxopenshib.mdl")
	function.AddFile("models/boxopenshib.xbox.vtx")
	function.AddFile("models/boxopenshib.sw.vtx")
	function.AddFile("models/closedboxshib.dx80.vtx")
	function.AddFile("models/closedboxshib.dx90.vtx")
	function.AddFile("models/closedboxshib.mdl")
	function.AddFile("models/closedboxshib.xbox.vtx")
	function.AddFile("models/closedboxshib.sw.vtx")
	function.AddFile("models/cocn.dx80.vtx")
	function.AddFile("models/cocn.dx90.vtx")
	function.AddFile("models/cocn.mdl")
	function.AddFile("models/cocn.xbox.vtx")
	function.AddFile("models/cocn.sw.vtx")
	function.AddFile("models/pissedmeoff.dx80.vtx")
	function.AddFile("models/pissedmeoff.dx90.vtx")
	function.AddFile("models/pissedmeoff.mdl")
		function.AddFile("models/pissedmeoff.xbox.vtx")
		function.AddFile("models/pissedmeoff.sw.vtx")
		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/alcohol_can.sw.vtx")
		function.AddFile("models/drugmod/alcohol.xbox.vtx")
		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/drug_mod/the_bottle_of_water.sw.vtx")
		function.AddFile("models/drug_mod/the_bottle_of_water.xbox.vtx")
		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/ipha/mushroom_small.sw.vtx")
		function.AddFile("models/ipha/mushroom_small.xbox.vtx")
		function.AddFile("models/jaanus/aspbtl.dx80.vtx")
		function.AddFile("models/jaanus/aspbtl.dx90.byc)"
		function.AddFile("models/jaanus/aspbtl.mdl")
		function.AddFile("models/jaanus/aspbtl.sw.vtx")
		function.AddFile("models/jaanus/aspbtl.xbox.vtx")
		function.AddFile("models/jaanus/aspbtl.sw.vtx")
		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/contraband/zak_wiet/zak_wiet.sw.vtx")
		function.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.xbox.vtx")
		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/katharsmodels/syringe_out/syringe_out.sw.vtx")
		function.AddFile("models/katharsmodels/syringe_out/syringe_out.xbox.vtx")
		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")
//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")
//cars
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")
function.AddFile("materials/corvette/badges.vtf")
function.AddFile("materials/corvette/black.vtf")
function.AddFile("materials/corvette/brake_disk.vtf")
function.AddFile("materials/corvette/chrome.vtf")
function.AddFile("materials/corvette/front_light.vtf")
function.AddFile("materials/corvette/glass.vtf")
function.AddFile("materials/corvette/glass_inside.vtf")
function.AddFile("materials/corvette/interior.vtf")
function.AddFile("materials/corvette/misc.vtf")
function.AddFile("materials/corvette/rear_light.vtf")
function.AddFile("materials/corvette/skin_s.vtf")
function.AddFile("materials/corvette/skin1.vtf")
function.AddFile("materials/corvette/skin2.vtf")
function.AddFile("materials/corvette/skin3.vtf")
function.AddFile("materials/corvette/tire.vtf")
function.AddFile("materials/corvette/trace.vtf")
function.AddFile("materials/corvette/wheel.vtf")
function.AddFile("materials/corvette/wheel_mask.vtf")
function.AddFile("materials/golfbadges.vtf")
function.AddFile("materials/golf/black.vtf")
function.AddFile("materials/golf/brake_disk.vtf")
function.AddFile("materials/golf/chrome.vtf")
function.AddFile("materials/golf/front_light.vtf")
function.AddFile("materials/golf/glass.vtf")
function.AddFile("materials/golf/glass_inside.vtf")
function.AddFile("materials/golf/interior.vtf")
function.AddFile("materials/golf/misc.vtf")
function.AddFile("materials/golf/rear_light.vtf")
function.AddFile("materials/golf/skin_s.vtf")
function.AddFile("materials/golf/skin1.vtf")
function.AddFile("materials/golf/skin2.vtf")
function.AddFile("materials/golf/skin3.vtf")
function.AddFile("materials/golf/tire.vtf")
function.AddFile("materials/golf/trace.vtf")
function.AddFile("materials/golf/wheel.vtf")
function.AddFile("materials/golf/wheel_mask.vtf")
function.AddFile("materials/models/copcar/copcarla92interior128.vtf")
function.AddFile("materials/models/copcar/copcarla92wheel64.vtf")
function.AddFile("materials/models/copcar/plateback1.vtf")
function.AddFile("materials/models/copcar/vehiclegeneric256.vtf")
function.AddFile("materials/models/copcar/vehiclegrunge256.vtf")
function.AddFile("materials/models/copcar/vehiclegrunge256schwarz.vtf")
function.AddFile("materials/models/copcar/vehiclelights128.vtf")
function.AddFile("materials/models/copcar/vehiclepoldecals128.vtf")
function.AddFile("materials/models/copcar/vehicletyres128.vtf")
function.AddFile("materials/models/copcar/window.vtf")
function.AddFile("materials/vgui/entities/copcar.vtf")
function.AddFile("materials/vgui/entities/corvette c6.vmt")
function.AddFile("materials/vgui/entities/corvette.vtf")
function.AddFile("materials/vgui/entities/golf gti.vmt")
function.AddFile("materials/vgui/entities/gold.vtf")
function.AddFile("models/corvette/corvette.dx80.vtx")
function.AddFile("models/corvette/corvette.dx90.vtx")
function.AddFile("models/corvette/corvette.dx80.mdl")
function.AddFile("models/corvette/corvette.dx80.sw.vtx")
function.AddFile("models/copcar.dx80.vtx")
function.AddFile("models/copcar.dx90.vtx")
function.AddFile("models/copcar.dx80.mdl")
function.AddFile("models/copcar.dx80.sw.vtx")
function.AddFile("models/golf/golf.dx80.vtx")
function.AddFile("models/golf/golf.dx90.vtx")
function.AddFile("models/golf/golf.dx80.mdl")
function.AddFile("models/golf/golf.dx80.sw.vtx")
function.AddFile("scripts/sounds/game_sounds_vehiclepack.txt")
function.AddFile("scripts/surfaceproperties/surfaceproperties_carmod.txt")
function.AddFile("scripts/surfaceproperties/surfaceproperties_gmow.txt")
function.AddFile("scripts/surfaceproperties/surfaceproperties_vmod.txt")
function.AddFile("scripts/vehicles/copcar.txt")
function.AddFile("scripts/vehicles/corvette.txt")
function.AddFile("scripts/vehicles/golf.txt")
G.AddCSLuaFile("lua/client/ClientVehicleScript.lua")
//keypadandcracker
G.AddCSLuaFile("lua/entities/sent_keypad/shared.lua")
G.AddCSLuaFile("lua/entities/sent_keypad/cl_init.lua")
G.AddCSLuaFile("lua/entities/sent_keypad/init.lua")
G.AddCSLuaFile("lua/entities/sent_keypad_wire/shared.lua")
G.AddCSLuaFile("lua/entities/sent_keypad_wire/cl_init.lua")
G.AddCSLuaFile("lua/entities/sent_keypad_wire/init.lua")
G.AddCSLuaFile("lua/weapons/gmod_tool/stools/keypad.lua")
G.AddCSLuaFile("lua/weapons/gmod_tool/stools/keypad_adv.lua")
G.AddCSLuaFile("lua/weapons/gmod_tool/stools/keypad_wire.lua")
G.AddCSLuaFile("lua/weapons/keypad_cracker/shared.lua")
//connas tools
G.AddCSLuaFile("lua/entities/gmod_timer/cl_init.lua")
G.AddCSLuaFile("lua/entities/gmod_timer/init.lua")
G.AddCSLuaFile("lua/entities/gmod_timer/shared.lua")
G.AddCSLuaFile("lua/entities/gmod_toggleablehoverball/cl_init.lua")
G.AddCSLuaFile("lua/entities/gmod_toggleablehoverball/init.lua")
G.AddCSLuaFile("lua/entities/gmod_toggleablehoverball/shared.lua")
G.AddCSLuaFile("lua/weapons/stools/fadingdoor.lua")
G.AddCSLuaFile("lua/weapons/stools/positionswitcher.lua")
G.AddCSLuaFile("lua/weapons/stools/rotator.lua")
G.AddCSLuaFile("lua/weapons/stools/timer.lua")
G.AddCSLuaFile("lua/weapons/stools/toggleablehoverballs.lua")
G.AddCSLuaFile("lua/autorun/MWVehicles.lua")
G.AddCSLuaFile("lua/autorun/pp_cars.lua")
G.AddCSLuaFile("lua/autorun/base_vehicles.lua")
G.AddCSLuaFile("lua/autorun/pp_cars.lua")

end

Alright, I have my vehicles inside addons folder on my server. I have my files in my FastDL folder. It downloads till materials/holograms/ why?

Is it a maximum or something? I can’t run my server with error signs as cars. :[

[editline]02:47AM[/editline]

bump, omg…

Just a suggestion, bud, but be patient. Some people here are willing to help you, but you have to wait a bit for responses.

You’re using “function” which is a reserved named in Lua; in addition, there is no “function” library. You’re looking for “resource”.

In your script below, you’re also calling from G, which isn’t necessary, and this too is incorrect, as the global table is _G, not G.

[editline]08:05PM[/editline]

What you’re doing shouldn’t be done, anyway. You shouldn’t be manually sending these files to clients, as their respective addons handle this.

Where are you getting function.AddFile from? The function is called **[Resource.AddFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Resource.AddFile)**. Other than that, you only have to add one of the model and material files, so:

[lua]resource.AddFile( “models/boxopencigshib.mdl” )
resource.AddFile( “models/boxopenshib.mdl” )
resource.AddFile( “models/closedboxshib.mdl” )
resource.AddFile( “materials/highs/shader3.vmt” )
resource.AddFile( “materials/highs/shader3_dudv.vmt” )
…[/lua]

Why did you start a new thread for this? You had all the information you needed in your last thread. You obviously know about **[Resource.AddFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Resource.AddFile)** yet you didn’t change your code to use it.

You need to use your brain a little bit too. The ‘G’ in **[G.AddCSLuaFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=G.AddCSLuaFile)** just means that the function exists in the global table, so you write it as ‘AddCSLuaFile(“myfile.lua”)’. The linked wiki article even has an example usage on it. I don’t think you are trying very hard.

:confused:
I usually check other threads and what not. and I just see people doing G.Add, and function, lol, where did that come from, i don’t know. :expressionless:
I’ll try not post spamming, sorry:(

Oh, and also, lol my cars won’t download=3
Still.

You made this thread yesterday.

http://www.facepunch.com/showthread.php?t=1004117

Bleh, im bad at making threads. I gotta use the sub feature-.-

You are a retard. You’ve got what you need in the thread title.

[editline]oh[/editline]
Also:

:psyduck:

We aren’t going to fix all the code for you

change function.AddFile("")
To resource.AddFile("")

Kay heres my new code


//	resource.AddFile("
//Others
{	resource.AddFile("data/evolvemotd4.txt")

//Drugz Mod 
	resource.AddFile("models/boxopencigshib.dx80.vtx")
	resource.AddFile("models/boxopencigshib.dx90.vtx")
	resource.AddFile("models/boxopencigshib.mdl")
	resource.AddFile("models/boxopencigshib.sw.vtx")
	resource.AddFile("models/boxopencigshib.xbox.vtx")
	resource.AddFile("models/boxopenshib.dx80.vtx")
	resource.AddFile("models/boxopenshib.dx90.vtx")
	resource.AddFile("models/boxopenshib.mdl")
	resource.AddFile("models/boxopenshib.xbox.vtx")
	resource.AddFile("models/boxopenshib.sw.vtx")
	resource.AddFile("models/closedboxshib.dx80.vtx")
	resource.AddFile("models/closedboxshib.dx90.vtx")
	resource.AddFile("models/closedboxshib.mdl")
	resource.AddFile("models/closedboxshib.xbox.vtx")
	resource.AddFile("models/closedboxshib.sw.vtx")
	resource.AddFile("models/cocn.dx80.vtx")
	resource.AddFile("models/cocn.dx90.vtx")
	resource.AddFile("models/cocn.mdl")
	resource.AddFile("models/cocn.xbox.vtx")
	resource.AddFile("models/cocn.sw.vtx")
	resource.AddFile("models/pissedmeoff.dx80.vtx")
	resource.AddFile("models/pissedmeoff.dx90.vtx")
	resource.AddFile("models/pissedmeoff.mdl")
		resource.AddFile("models/pissedmeoff.xbox.vtx")
		resource.AddFile("models/pissedmeoff.sw.vtx")
		resource.AddFile("models/drug_mod/alcohol_can.dx80")
		resource.AddFile("models/drug_mod/alcohol_can.dx90")
		resource.AddFile("models/drug_mod/alcohol_can.mdl")		
		resource.AddFile("models/drug_mod/alcohol_can.sw.vtx")
		resource.AddFile("models/drugmod/alcohol.xbox.vtx")
		resource.AddFile("models/drug_mod/the_bottle_of_water.dx80.vtx")
		resource.AddFile("models/drug_mod/the_bottle_of_water.dx90.vtx")
		resource.AddFile("models/drug_mod/the_bottle_of_water.mdl")
		resource.AddFile("models/drug_mod/the_bottle_of_water.sw.vtx")
		resource.AddFile("models/drug_mod/the_bottle_of_water.xbox.vtx")
		resource.AddFile("models/ipha/mushroom_small.dx80.vtx")
		resource.AddFile("models/ipha/mushroom_small.dx90.vtx")
		resource.AddFile("models/ipha/mushroom_small.mdl")
		resource.AddFile("models/ipha/mushroom_small.sw.vtx")
		resource.AddFile("models/ipha/mushroom_small.xbox.vtx")
		resource.AddFile("models/jaanus/aspbtl.dx80.vtx")
		resource.AddFile("models/jaanus/aspbtl.dx90.byc)"
		resource.AddFile("models/jaanus/aspbtl.mdl")
		resource.AddFile("models/jaanus/aspbtl.sw.vtx")
		resource.AddFile("models/jaanus/aspbtl.xbox.vtx")
		resource.AddFile("models/jaanus/aspbtl.sw.vtx")
		resource.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.dx80.vtx")
		resource.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.dx90.vtx")
		resource.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl")
		resource.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.sw.vtx")
		resource.AddFile("models/katharsmodels/contraband/zak_wiet/zak_wiet.xbox.vtx")
		resource.AddFile("models/katharsmodels/syringe_out/syringe_out.dx80.vtx")
		resource.AddFile("models/katharsmodels/syringe_out/syringe_out.dx90.vtx")
		resource.AddFile("models/katharsmodels/syringe_out/syringe_out.mdl")
		resource.AddFile("models/katharsmodels/syringe_out/syringe_out.sw.vtx")
		resource.AddFile("models/katharsmodels/syringe_out/syringe_out.xbox.vtx")
		resource.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.dx80.vtx")
		resource.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.dx90.vtx")
		resource.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.xbox.vtx")
		resource.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.sw.vtx")
		resource.AddFile("models/marioragdoll/Super Mario Galaxy/star/star.mdl")
		resource.AddFile("models/smile/smile.dx80.vtx")
		resource.AddFile("models/smile/smile.dx90.vtx")
		resource.AddFile("models/smile/smile.sw.vtx")
		resource.AddFile("models/smile/smile.xbox.vtx")
		resource.AddFile("models/smile/smile.mdl")
		resource.AddFile("materials/highs/shader3.vmt")
		resource.AddFile("materials/highs/shader3.vtf")
		resource.AddFile("materials/highs/shader3_dudv.vmt")
		resource.AddFile("materials/highs/shader3_dudv.vtf")
		resource.AddFile("materials/highs/shader3_normal.vmt")
		resource.AddFile("materials/highs/shader3.normal.vtf")
		resource.AddFile("materials/ipha/mushd.vmt")
		resource.AddFile("materials/ipha/mushd.vtf")
		resource.AddFile("materials/jaanus/aspbtl_a.vmt")
		resource.AddFile("materials/jaanus/aspbtl_a.vtf")
		resource.AddFile("materials/jaanus/aspbtl_.vmt")
		resource.AddFile("materials/jaanus/aspbtl_.vtf")
		resource.AddFile("materials/katharsmodels/syringe_body.vmt")
		resource.AddFile("materials/syringe_out/syringe_body.vtf")
		resource.AddFile("materials/syringe_out/syringe_body_mask.vtf)"
		resource.AddFile("materials/syringe_out/syringe_grip.vtf")
		resource.AddFile("materials/syringe_out/syringe_liquid.vtf")
		resource.AddFile("materials/syringe_out/syringe_lowerstopper.vtf")
		resource.AddFile("materials/syringe_out/syringe_needle.vtf")
		resource.AddFile("materials/syringe_out/syringe_stopper.vtf")
		resource.AddFile("materials/syringe_out/syringe_tip.vtf")
		resource.AddFile("materials/syringe_in/syringe_body.vmt")
		resource.AddFile("materials/syringe_in/syringe_grip.vmt")
		resource.AddFile("materials/syringe_in/syringe_liquid.vmt")
		resource.AddFile("materials/syringe_in/syringe_lowerstopper.vmt")
		resource.AddFile("materials/syringe_in/syringe_needle.vmt")
		resource.AddFile("materials/syringe_in/syringe_stopper.vmt")
		resource.AddFile("materials/syringe_in/syringe_tip.vmt")
		resource.AddFile("materials/contraband/contraband_normal.vtf")
		resource.AddFile("materials/contraband/contraband_one.vtf")
		resource.AddFile("materials/contraband/contraband_two.vmt")
		resource.AddFile("materials/killicons/durgz_aspirin_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_caffeine_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_cigarette_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_cocaine_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_ecstasy_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_heroine_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_lsd_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_mushroom_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_opium_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_pcp_killicon.vtf")
		resource.AddFile("materials/killicons/durgz_weed_killicon.vtf")
		resource.AddFile("materials/smile/smile.vtf")
		resource.AddFile("materials/VGUI/durgz_aspirin.vtf")
		resource.AddFile("materials/VGUI/durgz_caffeine.vtf")
		resource.AddFile("materials/VGUI/durgz_cigarette.vtf")
		resource.AddFile("materials/VGUI/durgz_cocaine.vtf")
		resource.AddFile("materials/VGUI/durgz_ecstasy.vtf")
		resource.AddFile("materials/VGUI/durgz_heroine.vtf")
		resource.AddFile("materials/VGUI/durgz_lsd.vtf")
		resource.AddFile("materials/VGUI/durgz_mushroom.vtf")
		resource.AddFile("materials/VGUI/durgz_opium.vtf")
		resource.AddFile("materials/VGUI/durgz_pcp.vtf")
		resource.AddFile("materials/VGUI/durgz_weed.vtf")
		resource.AddFile("materials/VGUI/durgzmod/awesomeface.vtf")
//cars
resource.AddFile("materials/expression2/cog.vtf")
resource.AddFile("materials/expression2/cog.vmt")
resource.AddFile("materials/expression2/cog_world.vmt")
resource.AddFile("materials/VGUI/entities/laserPointer.vtf")
resource.AddFile("materials/VGUI/entities/laserPointer.vmt")
resource.AddFile("materials/Holograms/torus3.mdl")
resource.AddFile("materials/Holograms/hqsphere.mdl")
resource.AddFile("materials/Holograms/hqtorus2.mdl")
resource.AddFile("materials/Holograms/torus.mdl")
resource.AddFile("materials/Holograms/cylinder.mdl")
resource.AddFile("materials/Holograms/cube.mdl")
resource.AddFile("materials/Holograms/icosphere2.mdl")
resource.AddFile("materials/Holograms/hqtorus.mdl")
resource.AddFile("materials/Holograms/prism.mdl")
resource.AddFile("materials/Holograms/dome.mdl")
resource.AddFile("materials/Holograms/tetra.mdl")
resource.AddFile("materials/Holograms/dome2.mdl")
resource.AddFile("materials/Holograms/sphere3.mdl")
resource.AddFile("materials/Holograms/sphere2.mdl")
resource.AddFile("materials/Holograms/pyramid.mdl")
resource.AddFile("materials/Holograms/cone.mdl")
resource.AddFile("materials/Holograms/hqjcosphere.mdl")
resource.AddFile("materials/Holograms/plane.mdl")
resource.AddFile("materials/Holograms/icosphere3.mdl")
resource.AddFile("materials/Holograms/hqcylinder.mdl")
resource.AddFile("materials/Holograms/sphere.mdl")
resource.AddFile("materials/Holograms/torus2.mdl")
resource.AddFile("materials/Holograms/icosphere.mdl")
resource.AddFile("materials/Holograms/hqsphere2.mdl")
resource.AddFile("materials/Holograms/hqcylinder2.mdl")
resource.AddFile("materials/Holograms/hqcone.mdl")
resource.AddFile("materials/corvette/badges.vtf")
resource.AddFile("materials/corvette/black.vtf")
resource.AddFile("materials/corvette/brake_disk.vtf")
resource.AddFile("materials/corvette/chrome.vtf")
resource.AddFile("materials/corvette/front_light.vtf")
resource.AddFile("materials/corvette/glass.vtf")
resource.AddFile("materials/corvette/glass_inside.vtf")
resource.AddFile("materials/corvette/interior.vtf")
resource.AddFile("materials/corvette/misc.vtf")
resource.AddFile("materials/corvette/rear_light.vtf")
resource.AddFile("materials/corvette/skin_s.vtf")
resource.AddFile("materials/corvette/skin1.vtf")
resource.AddFile("materials/corvette/skin2.vtf")
resource.AddFile("materials/corvette/skin3.vtf")
resource.AddFile("materials/corvette/tire.vtf")
resource.AddFile("materials/corvette/trace.vtf")
resource.AddFile("materials/corvette/wheel.vtf")
resource.AddFile("materials/corvette/wheel_mask.vtf")
resource.AddFile("materials/golfbadges.vtf")
resource.AddFile("materials/golf/black.vtf")
resource.AddFile("materials/golf/brake_disk.vtf")
resource.AddFile("materials/golf/chrome.vtf")
resource.AddFile("materials/golf/front_light.vtf")
resource.AddFile("materials/golf/glass.vtf")
resource.AddFile("materials/golf/glass_inside.vtf")
resource.AddFile("materials/golf/interior.vtf")
resource.AddFile("materials/golf/misc.vtf")
resource.AddFile("materials/golf/rear_light.vtf")
resource.AddFile("materials/golf/skin_s.vtf")
resource.AddFile("materials/golf/skin1.vtf")
resource.AddFile("materials/golf/skin2.vtf")
resource.AddFile("materials/golf/skin3.vtf")
resource.AddFile("materials/golf/tire.vtf")
resource.AddFile("materials/golf/trace.vtf")
resource.AddFile("materials/golf/wheel.vtf")
resource.AddFile("materials/golf/wheel_mask.vtf")
resource.AddFile("materials/models/copcar/copcarla92interior128.vtf")
resource.AddFile("materials/models/copcar/copcarla92wheel64.vtf")
resource.AddFile("materials/models/copcar/plateback1.vtf")
resource.AddFile("materials/models/copcar/vehiclegeneric256.vtf")
resource.AddFile("materials/models/copcar/vehiclegrunge256.vtf")
resource.AddFile("materials/models/copcar/vehiclegrunge256schwarz.vtf")
resource.AddFile("materials/models/copcar/vehiclelights128.vtf")
resource.AddFile("materials/models/copcar/vehiclepoldecals128.vtf")
resource.AddFile("materials/models/copcar/vehicletyres128.vtf")
resource.AddFile("materials/models/copcar/window.vtf")
resource.AddFile("materials/vgui/entities/copcar.vtf")
resource.AddFile("materials/vgui/entities/corvette c6.vmt")
resource.AddFile("materials/vgui/entities/corvette.vtf")
resource.AddFile("materials/vgui/entities/golf gti.vmt")
resource.AddFile("materials/vgui/entities/gold.vtf")
resource.AddFile("models/corvette/corvette.dx80.vtx")
resource.AddFile("models/corvette/corvette.dx90.vtx")
resource.AddFile("models/corvette/corvette.dx80.mdl")
resource.AddFile("models/corvette/corvette.dx80.sw.vtx")
resource.AddFile("models/copcar.dx80.vtx")
resource.AddFile("models/copcar.dx90.vtx")
resource.AddFile("models/copcar.dx80.mdl")
resource.AddFile("models/copcar.dx80.sw.vtx")
resource.AddFile("models/golf/golf.dx80.vtx")
resource.AddFile("models/golf/golf.dx90.vtx")
resource.AddFile("models/golf/golf.dx80.mdl")
resource.AddFile("models/golf/golf.dx80.sw.vtx")
resource.AddFile("scripts/sounds/game_sounds_vehiclepack.txt")
resource.AddFile("scripts/surfaceproperties/surfaceproperties_carmod.txt")
resource.AddFile("scripts/surfaceproperties/surfaceproperties_gmow.txt")
resource.AddFile("scripts/surfaceproperties/surfaceproperties_vmod.txt")
resource.AddFile("scripts/vehicles/copcar.txt")
resource.AddFile("scripts/vehicles/corvette.txt")
resource.AddFile("scripts/vehicles/golf.txt")

//Wiremod
resource.AddFile("settings/render_targets/WireGPU_RT_1.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_2.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_3.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_4.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_5.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_6.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_7.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_8.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_9.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_10.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_11.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_12.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_13.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_14.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_15.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_16.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_17.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_18.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_19.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_20.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_21.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_22.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_23.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_24.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_25.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_26.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_27.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_28.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_29.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_30.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_31.txt")
resource.AddFile("settings/render_targets/WireGPU_RT_32.txt")

//G.AddCSLuaFile("lua/client/ClientVehicleScript.lua")
//keypadandcracker
//G.AddCSLuaFile("lua/entities/sent_keypad/shared.lua")
//G.AddCSLuaFile("lua/entities/sent_keypad/cl_init.lua")
//G.AddCSLuaFile("lua/entities/sent_keypad/init.lua")
//G.AddCSLuaFile("lua/entities/sent_keypad_wire/shared.lua")
//G.AddCSLuaFile("lua/entities/sent_keypad_wire/cl_init.lua")
//G.AddCSLuaFile("lua/entities/sent_keypad_wire/init.lua")
//G.AddCSLuaFile("lua/weapons/gmod_tool/stools/keypad.lua")
//G.AddCSLuaFile("lua/weapons/gmod_tool/stools/keypad_adv.lua")
//G.AddCSLuaFile("lua/weapons/gmod_tool/stools/keypad_wire.lua")
//G.AddCSLuaFile("lua/weapons/keypad_cracker/shared.lua")
//connas tools
//G.AddCSLuaFile("lua/entities/gmod_timer/cl_init.lua")
//G.AddCSLuaFile("lua/entities/gmod_timer/init.lua")
//G.AddCSLuaFile("lua/entities/gmod_timer/shared.lua")
//G.AddCSLuaFile("lua/entities/gmod_toggleablehoverball/cl_init.lua")
//G.AddCSLuaFile("lua/entities/gmod_toggleablehoverball/init.lua")
//G.AddCSLuaFile("lua/entities/gmod_toggleablehoverball/shared.lua")
//G.AddCSLuaFile("lua/weapons/stools/fadingdoor.lua")
//G.AddCSLuaFile("lua/weapons/stools/positionswitcher.lua")
//G.AddCSLuaFile("lua/weapons/stools/rotator.lua")
//G.AddCSLuaFile("lua/weapons/stools/timer.lua")
//G.AddCSLuaFile("lua/weapons/stools/toggleablehoverballs.lua")
//G.AddCSLuaFile("lua/autorun/MWVehicles.lua")
//G.AddCSLuaFile("lua/autorun/pp_cars.lua")
//G.AddCSLuaFile("lua/autorun/base_vehicles.lua")
//G.AddCSLuaFile("lua/autorun/pp_cars.lua")

end
}
//yay

Still doesn’t download jack.
I have sv_downloadurl set to my FastDL Dir.
I have other files downloading fine from FastDL Dir.
I have placed the files in correct order like so.
Addons/models/corvette/corvette.mdl > models/corvette/corvette.mdl

God please tell me why…

Get rid of the { and the } and the end

Get rid off all the .vtx etc… you only need .mdl (the other stuff will be automatically added).

Alright, i’ll try that. See if it works, right now i stuffed that in Wire lol.

That is in Lua/autorun right

Where have you gotten this horrible coding style OP?

I really think you should read a Lua tutorial before you try to do anything more with Lua


//	resource.AddFile(" -- Why is this open?
//Others
{ -- Again, why is that there?	resource.AddFile("data/evolvemotd4.txt")

//Drugz Mod 
	resource.AddFile("models/boxopencigshib.dx80.vtx")

end -- Nothing to end.
} -- And again, no.


You bumped a 2 day resolved thread to post something that had already been said?