• Qestion on resource.addflie
    5 replies, posted
So i want to use it and i wanted to test it on a trail, so i did resource.AddSingleFile ("materials/trails/ban.vmt") and then on the server menu i made a file called download.lua and added this to it and it didn't work :( so does anyone know what i did wrongg
make sure the resource.AddFile is server side i would do this for mine init.lua [lua]resource.AddFile( "materials/trails/ban.vmt" ) resource.AddFile( "materials/trails/ban.vtf" )[/lua] make sure you have both the .vmt, and .vtf files somewhere then i think if you want to add it to the sandbox Menu you do this lua/autorun/downlaod.lua [lua]list.Set( "trail_materials", "#Ban", "trails/ban" );[/lua] I cant remember if that the right code to add it to the Spawn Menu.
Ok Great but the only thing is its for a shop, so does that change the coding or where to put it at all?
put the vmt's and vtf's in your materials folder and no it shouldn't affect the coding
wait meterails/ what [editline]7th September 2011[/editline] like the material folder then trails or player or what?
garrysmod/garrysmod/materials/trails
Sorry, you need to Log In to post a reply to this thread.