Garry's Mod TTT Pointshop Problem

I have had issues on my TTT server with the pointshop.
When a player buy’s and equips a player model in the pointshop (pointshop by _Undefined) the skin will apply until a new round starts. After the player dies and spawns in preparing the skin will be applied until the round starts.

If anyone needs extra information to help solve this problem please ask.

Thanks to all for helping! :slight_smile:

Here is my code:


ITEM.Name = 'alyx'
ITEM.Price = 2500
ITEM.Model = 'models/player/alyx.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

-Snip, use the most up to date version of PointShop-

This fixed my problem! Thanks!

Your welcome, you may want to mark this thread a solved now though, you can do that by looking at the top left of the thread and hitting solved.