How to apply a skin to a SWEP ViewModel and WorldModel

Not good with words, so here are some images.

http://puu.sh/3pqI0.png

http://puu.sh/3pqKA.png

http://puu.sh/3pqKZ.png

I want to apply my golden Deagle skin to my plain deagle TTT SWEP. How would I go about doing so?

Look how it’s done on this DarkRP weapon: https://github.com/FPtje/DarkRP/blob/master/entities/weapons/stunstick/shared.lua

So SetMaterial will work for vtf or vmt?

It would use both. Just have it as deagle_skin1 with no file extensions. So in this case SetMaterial(“deagle_skin1”) and if its in its own directory make sure you add that.

How can I apply it to the world model?

Look at how it’s done in linked weapon above.

Setting the weapons material in SWEP:Deploy like in the stunstick I linked you to will apply that material to both the view model and the world model.