Well. I add models to my server but they never work. I put them on fastdl, they are under my models folder and I have the MDL file on the model.
[CODE]ITEM.Name = 'Dark Kahn'
ITEM.Price = 5000
ITEM.Model = 'mkvsdcu/dark_kahn/slow_pub.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[/CODE] A code that doesnt work for models.
[CODE]ITEM.Name = 'Kleiner'
ITEM.Price = 250
ITEM.Model = 'models/player/kleiner.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
[/CODE] one that does work
Sorry, you need to Log In to post a reply to this thread.