Garry's Mod Wiki

umsg

We advise against using this. It may be changed or removed in a future update. You should be using the net library instead

The umsg (user message) library was previously the most common way of sending information from the server to the client.

Usermessages have a limit of only 256 bytes!

Methods

umsg.Angle( Angle angle )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes an angle to the usermessage.
umsg.Bool( boolean bool )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a bool to the usermessage.
umsg.Char( number char )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a signed char to the usermessage.
umsg.End()
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Dispatches the usermessage to the client(s).
umsg.Entity( Entity entity )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes an entity object to the usermessage.
umsg.Float( number float )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a float to the usermessage.
umsg.Long( number int )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a signed int (32 bit) to the usermessage.
umsg.PoolString( string string )
We advise against using this. It may be changed or removed in a future update. Inferior version of util. AddNetworkString The string specified will be networked to the client and receive a identifying number, which will be sent instead of the string to optimize networking.
umsg.Short( number short )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a signed short (16 bit) to the usermessage.
umsg.Start( string name, Player filter = nil )
We advise against using this. It may be changed or removed in a future update. You should be using net instead Starts a new usermessage. Usermessages have a limit of only 256 bytes!
umsg.String( string string )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a null terminated string to the usermessage.
umsg.Vector( Vector vector )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a Vector to the usermessage.
umsg.VectorNormal( Vector normal )
We advise against using this. It may be changed or removed in a future update. You should be using the net instead Writes a vector normal to the usermessage.