The context menu does not work for me :(

[ERROR] gamemodes/terrortown/gamemode/cl_equip.lua:193: attempt to index global
‘tttreskin’ (a nil value)

  1. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:193

Here is the code:


-- Close any existing traitor menu
   if eqframe and ValidPanel(eqframe) then eqframe:Close() end

   local credits = ply:GetCredits()
   local can_order = credits > 0
   local dframe = vgui.Create("DFrame")
   local w, h = 500, 350
   dframe:SetSize(w, h)
   dframe:Center()
   dframe:SetTitle(GetTranslation("equip_title"))
   dframe:SetVisible(true)
   dframe:ShowCloseButton(true)
   dframe:SetMouseInputEnabled(true)
   dframe:SetDeleteOnClose(true)
   dframe.Paint = function(self, w, h)
    draw.RoundedBox( 0, 0, 0, w, h, tttreskin.hsbg )
    draw.RoundedBox( 0, 0, 0, w, 25, tttreskin.hsbgtop )
  end

   local m = 5

   local dsheet = vgui.Create("DPropertySheet", dframe)

   -- Add a callback when switching tabs
   local oldfunc = dsheet.SetActiveTab
   dsheet.SetActiveTab = function(self, new)
      if self.m_pActiveTab != new and self.OnTabChanged then
         self:OnTabChanged(self.m_pActiveTab, new)
      end
      oldfunc(self, new)
   end

   dsheet:SetPos(0,0)
   dsheet:StretchToParent(m,m + 25,m,m)
   dsheet.Paint = function(self, w, h) 
    draw.RoundedBox( 0, 0, 0, w, h, tttreskin.tdmbody )
   end
   local padding = dsheet:GetPadding()

   local dequip = vgui.Create("DPanel", dsheet)
   dequip:SetPaintBackground(false)
   dequip:StretchToParent(padding,padding,padding,padding)

   -- Determine if we already have equipment
   local owned_ids = {}
   for _, wep in pairs(ply:GetWeapons()) do
      if IsValid(wep) and wep:IsEquipment() then
         table.insert(owned_ids, wep:GetClass())
      end
   end

What is tttreskin defined as?

It’s a new skin I added that doesn’t seem to work apparently

[editline]2nd September 2014[/editline]

Can you tell me how to uninstall it

Restore the default files. Delete the terrortown folder, then verify the contents.