Problem with adding a player model TTT

Hi… so I have problem with player models. When I manually copy it to the (server) gamemode/terrortown/content… and then (game) gamemode/terrortown/content… it works for me when I join to sever. When join my friend he is downloading models but it dont work for him he has an error. And he was checked his download files and he found my stuff here. So its not problem with downloading. I was added to the pointshop some guns and it works for me and for him… it cant must be manually coppied in my gamemode/terrotown/content… So models and materials are coppied in (server) garrysmod/addons then garrysmod/models and then garrysmod/materials and also in garrysmod/gamemode

here is my lua file of playermodel of cource in /autorun/server

if (SERVER) then
player_manager.AddValidModel( “Jinx”, “models/player/player_jinx.mdl.” )
player_manager.AddValidHands( “Jinx”, “models/player/jinx_arms.mdl.”, 0, “00000000” )
AddCSLuaFile(“jinx.lua”)
end

list.Set( “PlayerOptionsModel”, “Jinx”, “models/player/player_jinx.mdl.” )

if (SERVER) then
–icon
resource.AddFile( “/materials/models/playerjinx/jinx_base_mat.vmt” );

–model
resource.AddFile( “models/player/player_jinx.mdl” );
resource.AddFile( “models/player/jinx_arms.mdl” );
end

Move the file to lua/autorun/


AddCSLuaFile()

player_manager.AddValidModel( "Jinx", "models/player/player_jinx.mdl." )
player_manager.AddValidHands( "Jinx", "models/player/jinx_arms.mdl.", 0, "00000000" )

if ( SERVER ) then
--icon
resource.AddFile( "materials/models/playerjinx/jinx_base_mat.vmt" )

--model
resource.AddFile( "models/player/player_jinx.mdl" )
resource.AddFile( "models/player/jinx_arms.mdl" )
end

Now, if you DO NOT have a FastDL set up, it should work. If you do, you must put those models on your FastDL server too.

ok thx I go try… and I have files at fastdl server

Ask your friend to paste his console log after he joins your server and sees missing models.

oh btw Its another lua file that you wrote? or I must delete lua at autorun/server?

Delete old one.

[editline]6th June 2014[/editline]

And do what I said in previous post.

MDLCache: Player_jinx.mdl neds to be recompiled

And the model doesn’t work? Post full console log.

I see model like purple/black chess but its a new error… yesterday was all right

In your old file you had a broken path to the material, in the new one i fixed it. Make sure you add all the .vmts.

all the vmts are added… this is my lua in pointshop

ITEM.Name = ‘Jinx’
ITEM.Price = 20000
ITEM.Model = ‘models/player/player_jinx.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

[editline]6th June 2014[/editline]

[editline]6th June 2014[/editline]

[editline]6th June 2014[/editline]

now I see the model right… but console still show MDLCache: Player_jinx.mdl neds to be recompiled