Help Me about the pointshop

Hello guys I need some help on my pointshop. Basically I added a custom skin which is perfectly fine and showing on the pointshop but when I try to buy it doesnt buy it. Please help me is there anyway to fix it or so. Thanks.


ITEM.Name = 'Mario'
ITEM.Price = 250
ITEM.Model = 'models/player/mario.mdl'

function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end

timer.Simple(1, function() ply:SetModel(self.Model) end)
end

function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end

What’s the file called that consists this?

no capitals in the .lua file you made that for, is timer.simple actually required? not sure hah,

[lua]ITEM.Name = ‘Mario’
ITEM.Price = 250
ITEM.Model = ‘models/player/mario.mdl’

function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end

timer.Simple(1, function() ply:SetModel(self.Model) end)

end

function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end

function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end[/lua]

try this.