in init.lua i have
[CODE]function GM:InitPostEntity()
util.AddNetworkString( "StartVeffects" )
end
function GM:PlayerSpawn()
net.Start( "StartVeffects" ) //visual client effects
net.Send( ply )
end
[/CODE]
in cl_init.lua
[CODE]net.Receive( "StartVeffects", function()
PrintTable( ents.GetAll() )
end )
[/CODE]
now i'm confused because if you do ents.GetAll() without being handled by 'server to client steam' it will properly print out the entities
but in this scenario it will give an empty table
oddly enough, the .net stream also was unwilling to stream with net.WriteEntity(), it would come out as nil on the client's end... i would have assumed this was because AddNetworkString is not in shared, but that just gave me an error as well
its net not .net
.net is for windows and shit
and secondly its never even being sent to the client because you have commented it out
change
[lua] net.Start( "StartVeffects" ) //visual client effects net.Send( ply )[/lua]
to
[lua]
net.Start( "StartVeffects" )
net.Send( ply )
[/lua]
or something just get the send off the same line as your comment or remove the comment
Sorry, you need to Log In to post a reply to this thread.