Pointshop - Raining Lua Errors

Edit: Just noticed it, my bad. If anyone could move the thread to this place I’d be really happy. Sorry!

Hi! I’ve been working with my own stuff for pointshop recently, but what I came up only were wild Lua errors.

[lua][PAC3] lua/pac3/core/client/parts/model.lua:633: attempt to call method ‘GetWeaponColor’ (a nil value)

  1. SetColor - lua/pac3/core/client/parts/model.lua:633
  2. unknown - lua/pac3/core/client/parts/model.lua:642
    3. SetTable - lua/pac3/core/client/base_part.lua:651
    4. create - lua/pac3/core/client/base_part.lua:661
    5. SetTable - lua/pac3/core/client/base_part.lua:666
    6. create - lua/pac3/core/client/base_part.lua:661
    7. SetTable - lua/pac3/core/client/base_part.lua:666
    8. AttachPACPart - lua/pac3/core/client/integration_tools.lua:124
    9. DrawOtherModels - addons/customps/lua/vgui/dpointshoppreview.lua:167
    10. unknown - addons/customps/lua/vgui/dpointshoppreview.lua:101[/lua]

Happens when trying to select an item in a pointshop, item example:

[lua]ITEM.PACOutfit = {
[“children”] = {
[1] = {
[“children”] = {
[1] = {
[“children”] = {
},
[“self”] = {
[“Material”] = “phoenix_storms/future_vents”,
[“Position”] = Vector(1.7999999523163, -1, 2.7000000476837),
[“ClassName”] = “model”,
[“Size”] = 0.05,
[“UniqueID”] = “512661633”,
[“Model”] = “models/hunter/misc/shell2x2a.mdl”,
[“Scale”] = Vector(1.2999999523163, 1.3999999761581, 0.60000002384186),
},
},
[2] = {
[“children”] = {
},
[“self”] = {
[“ClassName”] = “model”,
[“Material”] = “phoenix_storms/future_vents”,
[“UniqueID”] = “747624710”,
[“Size”] = 0.125,
[“Angles”] = Angle(90, 20, 0),
[“Position”] = Vector(2.9000000953674, -0.40000000596046, 0),
[“Model”] = “models/hunter/misc/shell2x2a.mdl”,
[“Scale”] = Vector(0.69999998807907, 0.89999997615814, 1),
},
},
[3] = {
[“children”] = {
},
[“self”] = {
[“ClassName”] = “model”,
[“Material”] = “phoenix_storms/future_vents”,
[“UniqueID”] = “2725744963”,
[“Size”] = 0.025,
[“Angles”] = Angle(90, 20, 0),
[“Position”] = Vector(2.5999999046326, -0.5, 0),
[“Model”] = “models/hunter/tubes/tube4x4x025.mdl”,
[“Scale”] = Vector(1.7999999523163, 2.2999999523163, 4.5),
},
},
[4] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “4068706150”,
[“Scale”] = Vector(2.5, 2.2999999523163, 2.7000000476837),
[“UsePlayerColor”] = true,
[“Material”] = “models/props_combine/citadel_cable”,
[“Size”] = 0.025,
[“Model”] = “models/hunter/tubes/tubebend2x2x90outer.mdl”,
[“Position”] = Vector(-0.5, -4.1999998092651, 0),
[“Angles”] = Angle(90, -10.39999961853, 0),
[“Brightness”] = 0.6,
[“ClassName”] = “model”,
},
},
[5] = {
[“children”] = {
},
[“self”] = {
[“ClassName”] = “model”,
[“Material”] = “phoenix_storms/future_vents”,
[“UniqueID”] = “3027487359”,
[“Size”] = 0.05,
[“Angles”] = Angle(180, 0, 0),
[“Position”] = Vector(1.7999999523163, -1, -2.7000000476837),
[“Model”] = “models/hunter/misc/shell2x2a.mdl”,
[“Scale”] = Vector(1.2999999523163, 1.3999999761581, 0.60000002384186),
},
},
[6] = {
[“children”] = {
},
[“self”] = {
[“ClassName”] = “model”,
[“Material”] = “phoenix_storms/future_vents”,
[“UniqueID”] = “3211563806”,
[“Size”] = 0.025,
[“Angles”] = Angle(90, 65.699996948242, 0),
[“Position”] = Vector(2.9000000953674, -0.40000000596046, 0),
[“Model”] = “models/hunter/misc/shell2x2a.mdl”,
[“Scale”] = Vector(3.0999999046326, 4, 3.7999999523163),
},
},
[7] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “2595901883”,
[“Scale”] = Vector(2.5, 2.2999999523163, 2.7000000476837),
[“UsePlayerColor”] = true,
[“Material”] = “models/props_combine/citadel_cable”,
[“Size”] = 0.025,
[“Model”] = “models/hunter/tubes/tubebend2x2x90outer.mdl”,
[“Position”] = Vector(-0.5, -4.1999998092651, 0),
[“Angles”] = Angle(90, -10.39999961853, 0),
[“Brightness”] = 0.6,
[“ClassName”] = “model”,
},
},
},
[“self”] = {
[“ClassName”] = “bodygroup”,
[“UniqueID”] = “972130576”,
[“EditorExpand”] = true,
},
},
[2] = {
[“children”] = {
},
[“self”] = {
[“EditorExpand”] = true,
[“UniqueID”] = “451981341”,
[“ClassName”] = “bone”,
},
},
},
[“self”] = {
[“EditorExpand”] = true,
[“UniqueID”] = “1030616560”,
[“ClassName”] = “group”,
[“Name”] = “my outfit”,
[“Description”] = “add parts to me!”,
},
}
ITEM.Material = “gui/psicons/rare.png”
ITEM.lastSave = 1445270010
ITEM.Price = 0
ITEM.Name = “Riot Helmet”
ITEM.Description = “Brand new riot helmet forged in Kathra survivor camp. Can protect
from poison, acid and infected blood. Don’t wash with hot water.

Item rarity: Rare”

function ITEM:OnEquip( ply, modifications )
self:DoPACAttach( ply )
end

function ITEM:OnEquip( ply, modifications )
if self:Team() != TEAM_UNDEAD then
self:DoPACAttach( ply )
end
end

function ITEM:OnHolster( ply )
self:DoPACDetach( ply )
end

function ITEM:CanPlayerBuy(ply)
ply:ChatPrint(“You cannot buy this item.”)
return false
end
function ITEM:CanPlayerSell(ply)
ply:ChatPrint(“You cannot sell this item.”)
return false
end[/lua]

When attempting to wear another item, it rains Lua errors again:

[lua]pac3 failed to render CSEntity [class C_BaseFlex] :
lua/pac3/core/client/parts/model.lua:630: attempt to call method ‘GetPlayerColor’ (a nil value)[/lua]

Item:

[lua]ITEM.PACOutfit = {
[“children”] = {
[1] = {
[“children”] = {
[1] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “637796116”,
[“Scale”] = Vector(0.60000002384186, 0.5, 1),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, 1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/circle4x4c.mdl”,
[“Material”] = “models/props_combine/citadel_cable”,
},
},
[2] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “3094992348”,
[“Scale”] = Vector(0.60000002384186, 0.5, 1),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, -1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/circle4x4c.mdl”,
[“Material”] = “models/props_combine/citadel_cable”,
},
},
[3] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “1184880453”,
[“Scale”] = Vector(0.60000002384186, 0.5, 1),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, -1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/circle4x4c.mdl”,
[“Material”] = “models/props_combine/citadel_cable”,
},
},
[4] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “4258906233”,
[“Scale”] = Vector(1.2000000476837, 1, 0.30000001192093),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, 1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/tube2x2x025c.mdl”,
[“Material”] = “phoenix_storms/future_vents”,
},
},
[5] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “3825839329”,
[“Scale”] = Vector(0.69999998807907, 0.69999998807907, 0.40000000596046),
[“Angles”] = Angle(0, 85, -90),
[“Size”] = 0.125,
[“Position”] = Vector(1.2999999523163, 2.5999999046326, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/props_c17/signpole001.mdl”,
[“Material”] = “phoenix_storms/future_vents”,
},
},
[6] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “1196519787”,
[“Scale”] = Vector(0.89999997615814, 0.30000001192093, 0.80000001192093),
[“Angles”] = Angle(0, 90, 0),
[“Size”] = 0.125,
[“Position”] = Vector(1.3999999761581, 0, 0.10000000149012),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/props_phx/construct/wood/wood_boardx1.mdl”,
[“Material”] = “phoenix_storms/future_vents”,
},
},
[7] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “4258906233”,
[“Scale”] = Vector(0.60000002384186, 0.5, 1),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, 1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/circle4x4c.mdl”,
[“Material”] = “models/props_combine/citadel_cable”,
},
},
[8] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “3094992348”,
[“Scale”] = Vector(1.2000000476837, 1, 0.30000001192093),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, -1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/tube2x2x025c.mdl”,
[“Material”] = “phoenix_storms/future_vents”,
},
},
[9] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “3522585992”,
[“Scale”] = Vector(0.69999998807907, 0.69999998807907, 0.40000000596046),
[“Angles”] = Angle(0, 95, -90),
[“Size”] = 0.125,
[“Position”] = Vector(1.2999999523163, -2.5999999046326, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/props_c17/signpole001.mdl”,
[“Material”] = “phoenix_storms/future_vents”,
},
},
[10] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “4258906233”,
[“Scale”] = Vector(0.60000002384186, 0.5, 1),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, 1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/circle4x4c.mdl”,
[“Material”] = “models/props_combine/citadel_cable”,
},
},
[11] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “3522585992”,
[“Scale”] = Vector(0.60000002384186, 1.2999999523163, 5),
[“Angles”] = Angle(0, 90, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.5, 0, 0),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/props_phx/construct/wood/wood_boardx1.mdl”,
[“Material”] = “phoenix_storms/future_vents”,
},
},
[12] = {
[“children”] = {
},
[“self”] = {
[“UniqueID”] = “1184880453”,
[“Scale”] = Vector(0.60000002384186, 0.5, 1),
[“Angles”] = Angle(-90, 0, 0),
[“Size”] = 0.025,
[“Position”] = Vector(1.3999999761581, -1.5, 0.30000001192093),
[“ClassName”] = “model”,
[“Bone”] = “eyes”,
[“Model”] = “models/hunter/tubes/circle4x4c.mdl”,
[“Material”] = “models/props_combine/citadel_cable”,
},
},
},
[“self”] = {
[“ClassName”] = “bodygroup”,
[“UniqueID”] = “507766638”,
[“EditorExpand”] = true,
},
},
},
[“self”] = {
[“EditorExpand”] = true,
[“UniqueID”] = “2425886359”,
[“ClassName”] = “group”,
[“Name”] = “my outfit”,
[“Description”] = “add parts to me!”,
},
}
ITEM.Material = “gui/psicons/rare.png”
ITEM.lastSave = 1445275060
ITEM.Price = 0
ITEM.Name = “Black Sunglasses”
ITEM.Description = “Hasta la vista.

Item rarity: Rare”

function ITEM:OnEquip( ply, modifications )
if self:Team() != TEAM_UNDEAD then
self:DoPACAttach( ply ) else
end
end

function ITEM:OnHolster( ply )
self:DoPACDetach( ply )
end

function ITEM:CanPlayerBuy(ply)
ply:ChatPrint(“You cannot buy this item.”)
return false
end
function ITEM:CanPlayerSell(ply)
ply:ChatPrint(“You cannot sell this item.”)
return false
end[/lua]

Also how I can disable the preview in a Pointshop to reduce the lag? I have no clue myself, I don’t really need the preview thing since it makes client’s computer melt down beacuse of effects.

Thanks in advance,
Worm