Garry's Mod Wiki
This is the object passed to usermessage.Hook when a message is received. It contains each value stored in the message in sequential order. You should read values from it in the order you wrote them.
We advise against using this. It may be changed or removed in a future update.
You should be using net instead
Methods
Reads a signed char and returns a number from -127 to 127 representing the ascii value of that char.
Entity bf_read:ReadEntity()
Reads a short representing an entity index and returns the matching entity handle.
string bf_read:ReadString()
Reads a null terminated string from the bitstream.
Vector bf_read:ReadVector()
Reads a special encoded vector from the bitstream and returns it, this function is not suitable to send normals.
Vector bf_read:ReadVectorNormal()
Reads a special encoded vector normal from the bitstream and returns it, this function is not suitable to send vectors that represent a position.
bf_read:Reset()
Rewinds the bitstream so it can be read again.
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...