Nextbot issue.

Hello FacePunch. Today I create nextbot, and make manually spawn at map in some positions. But not all nextbots transmited to client(Server have 4 nextbot, client only 3 nextbots). If I go near to 4 nextbot(that don’t transmited to client), then it initialize and another entities(1-3) won’t work stable and start move as lagger. Can someone help me?
Serverside:


] report_entities
Class: nextzbot (4)
----------------------
Entity 822 - 825

Clientside:


]  cl_showents
Ent 822:  class 'NextBotCombatCharacter'
Ent 824:  class 'NextBotCombatCharacter'
Ent 825:  class 'NextBotCombatCharacter'

Client don’t get Ent 823!?

Serverside:


net.Start("SomeCheckOne")
net.WriteTable(ents.FindByClass("nextzbot"))
net.Broadcast()
-----------------------------
]print ents.FindByClass("nextzbot")
1	=	NextBot [822][nextzbot]
2	=	NextBot [823][nextzbot]
3	=	NextBot [824][nextzbot]
4	=	NextBot [825][nextzbot]

Clientside:


net.Receive("SomeCheckOne",function(len)
	PrintTable(net.ReadTable())
end)
----------------------------------------
1:	Entity [822][nextzbot]
2:	[NULL Entity]
3:	Entity [824][nextzbot]
4:	Entity [825][nextzbot]


Also my nextbot don’t initialize on client, but placed in “entities/nextzbot.lua”


function ENT:Initialize()
	print(CLIENT,SERVER)
end

Serverside:


false	   true

Any ideas? Sry for my bad English, if it really bad :D.

That’s called PVS.

Basically, the client won’t know about your entity if it can’t potentially see it on their screen. Once the player moves closer to the entity on server, the client will receive information about the entity.



for _,v in pairs(ents.FindByClass("nextzbot")) do
net.SendPVS( v:GetPos() )
end


?
P.S. I would like make nextbot, what transmited to client, when player connected.

That code wouldn’t work ( Unless that is not all of it ) and will not actually do anything useful besides sending a net message as many times are there are entities with that class name on the server.

What you are looking for is this, but I don’t think it works on NextBots.

Yes, it’s not work on nextbot, no more ideas how to make it?