Well, I've got a TTT Gmod Server. I'm using Pointshop addon and when I add some models to it, players have a lot of time to download it. I heard that now I can use Workshop like FastDL but, I don't understand something:
If I use Workshop, in the .lua file of the model ¿what resource I need to put in?
Normally I put this in the .lua file:
[CODE]resource.AddFile( "models/player/venom.mdl" )[/CODE]
With a model in Workshop... What I need to put on that file?
For workshop, you need to put resource.AddWorkshop( "WorkshopIDhere" ) instead of a file path.
And It works the same than the file in the server's folder?
Yes.
And If the model need to get materials, and I dont know wich are and how much are...What I must to include in the .lua file??
Everything is packed in a .gma, right? To use resource.AddWorkshop the files have to be on the workshop.
Alright! Thanks a lot! You are my hero! ^_^
So, now I have got one more question... In the "items" folder, the "example.lua" file must content the specific direction of the model... Wich are in that case??
ITEM.Model = "models/player/something.mdl"
To find the exact path, you'll need to extract the .gma using GMad.
Shit! I'm too bad using external programs... Well, I must to learn how to use it ^_^
[QUOTE=Hinarion;43419954]Shit! I'm too bad using external programs... Well, I must to learn how to use it ^_^[/QUOTE]
Here's one with a nice interface. [url]http://www.treesoft.dk/gmod/gmad/[/url]
Sorry, you need to Log In to post a reply to this thread.