Garry's Mod Wiki

usermessage.IncomingMessage

  usermessage.IncomingMessage( string name, bf_read msg )

Description

This is used internally - although you're able to use it you probably shouldn't.

Called by the engine when a usermessage arrives, this method calls the hook function specified by usermessage.Hook if any.

Arguments

1 string name
The message name.
2 bf_read msg
The message.