Server File Issues

When I host my listen server with my gamemode players download models,lua files, materials and such yet when they spawn the models that they download are invisible and all they can see is the shadows. When my friend hosts the server via his computer he can see the entities. Also, none of the server files download on to the client, The HUD is invisible along with no client sided derma appearing.

Download Code:

[lua]
AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )
AddCSLuaFile( “metafunc.lua” )
AddCSLuaFile( “player.lua” )
AddCSLuaFile( “chat.lua” )
AddCSLuaFile( “saving.lua” )
AddCSLuaFile( “server.lua” )

include( ‘shared.lua’ )
include( “metafunc.lua” )
include( “player.lua” )
include( “chat.lua” )
include( “saving.lua” )
include( “server.lua” )
include( “cl_init.lua” )

function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("…/"…dir…"/*")
for _, fdir in pairs(list) do
if fdir != “.svn” then // don’t spam people with useless .svn folders
AddDir(fdir)
end
end

for k,v in pairs(file.Find("../"..dir.."/*")) do
	resource.AddFile(dir.."/"..v)
end

end

AddDir(“models/Humans/group02”)
AddDir(“models/nater”)
AddDir(“models/Tysn”)
AddDir(“models/zak_wiet”)
AddDir(“materials/Tysn”)
AddDir(“materials/models/nater”)
AddDir(“materials/VGUI/playermodels”)
AddDir(“materials/models/Humans/male/group02”)
AddDir(“materials/models/Humans/female/group02”)
[/lua]

Entity Example:

Init:
[lua]
AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )
include( ‘shared.lua’ )

function ENT:SpawnFunction( ply, tr )

if ( !tr.Hit ) then return end 
 
local SpawnPos = tr.HitPos + tr.HitNormal 
 
local ent = ents.Create( "sent_Stove" )
ent:SetPos( SpawnPos ) 
ent:Spawn()
ent:Activate() 

end

function ENT:Initialize()

self.Entity:SetModel( "models/props_wasteland/kitchen_stove001a.mdl" )

self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
self.Entity:Think()

end

function ENT:PhysicsCollide( data, physobj )

end

function ENT:OnTakeDamage( dmginfo )

end

function ENT:Use( ply, caller )

end

function ENT:Touch( hitent )

end

function ENT:Think()

end

[/lua]

Cl_Init:
[lua]

ENT.Spawnable = true
ENT.AdminSpawnable = true
include(‘shared.lua’)

function ENT:Initialize()

end

function ENT:Think()

end

function ENT:OnRestore()
end

function ENT:Draw()
self.Entity:DrawModel()
end

[/lua]

Shared:
[lua]

ENT.Base = “base_gmodentity”
ENT.Type = “anim”

ENT.PrintName = “Stove”
ENT.Author = “Lyeol”

ENT.Contact = “”
ENT.Purpose = “A fucking stove!”
ENT.Instructions = “Loel Stove”

ENT.Spawnable = false
ENT.AdminSpawnable = true
[/lua]

Picture Examples.
Mine:

http://img43.imageshack.us/img43/5374/stuffd.png[/media]

His:
[media]http://img269.imageshack.us/img269/3897/rpevocityv2d0006.jpg