• resource.AddFile NOT WORKING
    5 replies, posted
Hello, I have a server running with darkrp i add the models in garrysmod/models garrysmod/materials download.lua: resource.AddFile("/models/player/adminrpp.dx80.vtx") resource.AddFile("/models/player/adminrpp.dx90.vtx") resource.AddFile("/models/player/adminrpp.mdl") resource.AddFile("/models/player/adminrpp.phy") resource.AddFile("/models/player/adminrpp.sw.vtx") resource.AddFile("/models/player/adminrpp.vvd") resource.AddFile("/materials/models/player/adminrpp/adminrpp.vmt") resource.AddFile("/materials/models/player/adminrpp/adminrpp.vtf") resource.AddFile("/materials/models/player/adminrpp/adminrpp_glass.vmt") resource.AddFile("/materials/models/player/adminrpp/adminrpp_glass.vtf") resource.AddFile("/materials/models/player/adminrpp/adminrpp_glass_spec.vtf") resource.AddFile("/materials/models/player/adminrpp/adminrpp_height.vtf") resource.AddFile("/materials/models/player/adminrpp/adminrpp_normal.vtf") the download .lua file is in the garrysmod/lua/autorun/server the players don't download the models if you have a tip or a reason why its not working pleas help
Remove the first / So it should only be 'models/player/blah'
Thanks for your reply. its working
Also, For your further ease of resource adding, Add the VMTs only. The script will grab the appropriate VTF as long as you have the VMTs. I beleive this also works with one of the file extensions with models, but im not sure which.
That would be the .mdl file. You just need to add it and the game sends the rest of the model files for you.
[QUOTE=Archemyde;33389983]Also, For your further ease of resource adding, Add the VMTs only. The script will grab the appropriate VTF as long as you have the VMTs. I beleive this also works with one of the file extensions with models, but im not sure which.[/QUOTE] This only works if the VTF has the same name as the VMT.
Sorry, you need to Log In to post a reply to this thread.