Garry's Mod Wiki
Description
Sends the current net message (see net.Start) to the server. The player object must exist on the server for the net message to be received successfully by the server.
The message name must be pooled with util.AddNetworkString beforehand!
Example
Sends a simple hello_world message with the string Hi to the server as soon as possible after joining the game.
hello_world is sent to the server. The server can handle this with net.Receive.
Remember that any client has the potential to send any net message at any time. Don't trust the client-side! On your server-side net.Receive, make sure to verify the message sender's permissions whenever you can and prevent expensive functions from being run too often.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...