You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sb\init.lua there is a table. This table must be only strings (it will check). A function will run util.AddNetworkString for each string. Strings are the name of the net message - it only needs to be precached on the server
Clientside - Net library works like:
net.Receive(messageName, function( length, client)
--Things must be read in the same order.end)
Server - Net Library
--After precaching - done in sb\init.luanet.Start(messageName)
net.WriteString("HelloWorld")
net.Send(ply) --ply can be a player or a table of players
The text was updated successfully, but these errors were encountered:
Not at the minute, wait till weekend then we can discuss and run some tests whilst on ts.
I might be available after you finish school on friday. If not it'll be sat morning for you.
Ok, Have to use the net Library.
Some notes about how I'm implementing it
In sb\init.lua there is a table. This table must be only strings (it will check). A function will run util.AddNetworkString for each string. Strings are the name of the net message - it only needs to be precached on the server
Clientside - Net library works like:
Server - Net Library
The text was updated successfully, but these errors were encountered: