Receive( "BanPlayer", function( len, ply ) You can also send a message to every connected player serverside using net.Broadcastįor reading data, there are functions for each writable type of data above, generally being net.Read(Type). To send the message, use net.Send on the server, or net.SendToServer on the client. To send data, after calling the net.Start function, you can use the following functions, each for their specified data type: Generally empty net messages are used as a simple way of alerting the player of something that has happened on the server which the client does not know about unless the server tells them about it, for example, after a certain time has passed on the server, an empty net message could be sent to the client to tell them that a menu should be opened. We send an empty net message, next we will look at sending data in net messages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |