• Adding custom derma images serverside.
    3 replies, posted
So I have a menu, a vtf and png of an image I want to use in a derma frame. However, how do I import the image as to not have it be a missing texture, I want it to show as my custom image on the derma panel for a player.
resource.AddFile or Workshop Addon Creation
I've already done that, like so: resource.AddFile("materials/merchead.vtf") L:\Steam\steamapps\common\GarrysMod\garrysmod\lua\entities\mercenaryshop\materials That is the path, and I am using SetMaterial("materials/merchead.vtf")
I believe the file should be located in the server's material's folder, not the lua folder. So: L:\Steam\steamapps\common\GarrysMod\garrysmod\materials\merchead.vtf unless you stick it in a subfolder like you do in the provided example, in which case: L:\Steam\steamapps\common\GarrysMod\garrysmod\materials\mercenaryshop\merchead.vtf
Sorry, you need to Log In to post a reply to this thread.