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 )
Writes an angle to the usermessage.
umsg.Bool( boolean bool )
Writes a bool to the usermessage.
umsg.Char( number char )
Writes a signed char to the usermessage.
umsg.End()
Dispatches the usermessage to the client(s).
umsg.Entity( Entity entity )
Writes an entity object to the usermessage.
umsg.Float( number float )
Writes a float to the usermessage.
umsg.Long( number int )
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 )
Writes a signed short (16 bit) to the usermessage.
umsg.Start( string name, Player filter )
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 )
Writes a null terminated string to the usermessage.
umsg.Vector( Vector vector )
Writes a Vector to the usermessage.
umsg.VectorNormal( Vector normal )
Writes a vector normal to the usermessage.

Page Links


Special Pages


Wikis

?

Render Time: 24ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 8
Render Body 0
Render Sidebar 5