Multiple network strings or one with additional packet data?

Should there be multiple network strings made with this?


Or just one and have more data be in the packet itself?

net.Receive("one string", function()
  local whatToDo = net.ReadString()
  if whatToDo == "something" then...etc

Keeping everything in one net message means overhead and while it’s only a few bytes, it’s good practice to avoid it where possible. Make multiple net messages for cleaner code.

You can use it as much as you want yeah. All that does is register it. For example:




 net.Start("system:test") net.SendToServer() 

you can send it from the Client to Server as much as you want, you can even use it on the Server to send to the client.