Icon Issue

I’ve never had this problem before. But the icon for a specific weapon is always a missing texture.

Yes, the file name matches the icon word for word. I’ve tried vtfs, +vmts, and nothing works. The icon used to work then one day out of the blue it started having missing textures. I’ve dealt with icons before so I’m not sure what the issue is here. I ctrl+f’d through the file name and there were no other icon specifications that could override this one. What could be the issue? I cannot post the whole code as it’s part of a job I had done a while ago.


if CLIENT then
   SWEP.Icon = "vgui/ttt/tunited_m9kharpoon.png"
   SWEP.PrintName    = "Harpoon"
   SWEP.Slot         = 6
  
   SWEP.ViewModelFlip = false
   SWEP.ViewModelFOV   = 70

   SWEP.EquipMenuData = {
      type = "item_weapon",
      desc = [[
      A deadly harpoon that is thrown for a 
      quick kill.]]
   };


end

have you added it to fast dl? and also are you sure the path is right

of course

whats that path ? garrysmod/garrysmod/download/materials/vgui/ttt?

[editline]28th September 2014[/editline]

why not add the png file to the gamemode terrortown then into vgui/ttt

Every SWEP (weapon_tttbase) I use has it in the same exact format. vgui/ttt/_____ and they work fine

well than i’m not sure maybe someone will come to the rescue

Can you post your sv_downloadurl and resource.AddFile file?

smart thinking code_gs