Hello. Im working on a Evocity retexture addon for Gmod. I need to know, how to get custom textures working. I tryed to make the same paths like the original texture files have and just replaced the textures. It worked, but only one time. After i close Gmod or load a new addon into my gmod, my custom textures will not work anymore and i need to subscribe my addon again to get them work. So i think my problem is: I cant overwrite the textures, just add new and get them work with a lua script. I found something here on the forum and tryed it. But i get a lua error if i join my map.
This is my lua script i made, to replace a texture:
local mat = Material"hall_brick/brick01a"
local met = Material"dvm/dbrick01a"
Can someone help me making this texture addon?