umsg.PoolString
From GMod Wiki
Function | |
Syntax |
umsg.PoolString( String value ) Where is this used? |
Description: | |
Pools a User Message name. This adds a string to a table that is shared between the client and server. This is useful for strings that are being sent often. | |
Returns: | nil |
Part of Library: | umsg |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Umsg.PoolString]Umsg.PoolString [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You need to pool the string before you start the usermessage, it will only be pooled once.
- You only need to send the string in the usermessage, it will automatically replace the string with an identifier.