• TTT Icon Help
    4 replies, posted
I think im being dumb af right now but I can't seem to add a TTT icon to my swep. The swep and materials are in my server's addons folder the file path for it is: addons/defibrillator/materials/vgui/ttt/icon_defibgang.vtf addons/defibrillator/materials/vgui/ttt/icon_defibgang.vmt addons/defibrillator/lua/weapons/ttt_defib.lua The VTF is a simple icon, I just changed the sample TTT icon from badking. The VMT is: "UnlitGeneric" {     "$basetexture" "vgui/ttt/icon_defibgang"     "$translucent" 1     "$vertexalpha" 1     "$vertexcolor" 1 } And finally, in the SWEP I have: SWEP.Icon = "vgui/ttt/icon_defibgang" if SERVER then     resource.AddFile("materials/vgui/ttt/icon_defibgang.vmt")     resource.AddFile("materials/vgui/ttt/icon_defibgang.vtf") end But when in the menu the icon shows up like this: https://files.facepunch.com/forum/upload/422810/29f1a903-bcb5-4816-87e1-4c876828ba9a/image.png Any help would be appreciated
Read wiki first resource.AddFile( "materials/my/material.vmt" ) -- Automatically adds materials/my/material.vtf
Thanks for the info, didn't realise that! Changed it to just: resource.AddFile("materials/vgui/ttt/icon_defibgang.vmt") But the issue remains!
For this type of image you can make .png instead .vtf AddFile as .png and SWEP.Icon = "materials/vgui/ttt/icon_defibgang.png"
Works! Thanks so much
Sorry, you need to Log In to post a reply to this thread.