Pointshop 2 error

So, upon me simply opening the menu for Pointshop 2 (It happens for anyone to join the server and open the menu):

[ERROR] lua/vgui/dimage.lua:120: attempt to index local ‘Mat’ (a nil value)

  1. FixVertexLitMaterial - lua/vgui/dimage.lua:120
  2. SetImage - lua/vgui/dimage.lua:101
    3. SetItemClass - addons/pointshop2/lua/ps2/modules/pointshop2/hat/cl_dpointshophaticon.lua:20
    4. DoPopulate - addons/pointshop2/lua/ps2/client/tabs/management_tab/manage_items/content/cl_pointshop2content.lua:118
    5. PopulateWithExistingCategories - addons/pointshop2/lua/ps2/client/tabs/management_tab/manage_items/content/cl_pointshop2content.lua:222
    6. fn - addons/pointshop2/lua/ps2/client/tabs/management_tab/manage_items/content/cl_pointshop2content.lua:310
    7. Call - addons/ulib/lua/ulib/shared/hook.lua:110
    8. CallPopulateHook - addons/pointshop2/lua/ps2/client/tabs/management_tab/manage_items/dpointshopcontentpanel.lua:27
    9. Init - addons/pointshop2/lua/ps2/client/tabs/management_tab/cl_dpointshopmanagementtab_items.lua:15
    10. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
    11. Init - addons/pointshop2/lua/ps2/client/tabs/management_tab/cl_dpointshopmanagementtab.lua:19
    12. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
    13. Init - addons/pointshop2/lua/ps2/client/cl_dpointshopframe.lua:112
    14. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
    15. OpenMenu - addons/pointshop2/lua/ps2/client/cl_0_pointshop2.lua:8
    16. ToggleMenu - addons/pointshop2/lua/ps2/client/cl_0_pointshop2.lua:70

The code:
111 - function PANEL:FixVertexLitMaterial()
112 -
113 - –
114 - – If it’s a vertexlitgeneric material we need to change it to be
115 - – UnlitGeneric so it doesn’t go dark when we enter a dark room
116 - – and flicker all about
117 - –
118 -
119 - local Mat = self:GetMaterial()
120 - local strImage = Mat:GetName()
121 -
122 - if ( string.find( Mat:GetShader(), “VertexLitGeneric” ) || string.find( Mat:GetShader(), “Cable” ) ) then
123 -
124 - local t = Mat:GetString( “$basetexture” )
125 -
126 - if ( t ) then
127 -
128 - local params = {}
129 - params[ “$basetexture” ] = t
130 - params[ “$vertexcolor” ] = 1
131 - params[ “$vertexalpha” ] = 1
132 -
133 - Mat = CreateMaterial( strImage … “_DImage”, “UnlitGeneric”, params )
134 -
135 - end
136 -
137 - end
138 -
139 - self:SetMaterial( Mat )
140 -
141 - end

Proof I do actually own the bloody addon before you all complain about it

Make a support ticket on scriptfodder.

Great another retard asking for support for SF Scripts…

IF you bought an addon you can ask the owner of it to give you support simply by clicking the ‘support’ button, I know its CRAZY and REVOLUTIONARY but in 2017, when you buy a product, you usually get support for it! :open_mouth:

Wanna know something else revolutionary?
It’s called them not responding to tickets! Ya’ know, hense the reason me coming here.

That’s against scriptfodder’s rules iirc.

Like the guy above me said, Your not even allowed to post the scripts here, by the ToS you agreed to…

The LUA is from a core file that pointshop is having a problem with.
The top one, an Error.
The screenshot, evidence.
So where’s the script?

Ahh i see, didn’t even look at the code, thought u were logical enough to post the PS2 code, lol

Nope, core lua file. I can add the directory if you need.