• Networking
    3 replies, posted
Hi guys, so I've created a file in autorun/server test.lua util.AddNetworkString('test') net.Receive( "test", function() pl = net.ReadEntity() text = net.ReadString() pl:ChatPrin(text) end ) tThen I And I type in the console - lua_run for k,v in pairs(player.GetAll()) do net.Start("test") net.WriteEntity(v) net.WriteString("Test Message") net.Send(v) end As I see, everything is right but I don't get the message also I don't get any errors in my console. So, what is wrong?
Your receiver is on the server and you are sending data FROM the server.
The request should be from client?
If you want to receive data on the client, then obviously you will want the receiver on the client.
Sorry, you need to Log In to post a reply to this thread.