My friend who manages my TTT's server pointshop is having troubles again. (Again. Sorry I keep coming here)
We've added the HL2 Models already in Gmod into the Pointshop ( Barney, Combine Soldier, Civil Protection, Breen, etc )
But they keep doing the T pose. Is there a way to fix it? Or are we doing it wrong?
Post the code for one model that's doing it.
[QUOTE=code_gs;45234043]Post the code for one model that's doing it.[/QUOTE]
He told me this:
ITEM.Name = 'Sexy'
ITEM.Price = 500
ITEM.Model = 'models/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
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end