net.WriteString
From GMod Wiki
| Function | |
| Syntax |
net.WriteString( String ) Where is this used? |
| Description: | |
| Sends a string through the net library. | |
| Returns: | Nil |
| Part of Library: | net |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Net.WriteString]Net.WriteString [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Sends the string "Hi There" to the client. |
|---|---|
| Used on | |
| Code | net.Start("Test") --Unique name accessed by the recipent's net.WriteString("Hi There") net.Send(Entity(1)) |
| Output | Entity 1 will recieve the string "Hi There" this can be read using net.Recieve |
Additional Notes
- A max of 64kb's can be sent at one time
- WriteString will only send strings - use the other net functions to send your data format.
- Consult the net library for more details