usermessage.Hook

From Garry's Mod
Jump to: navigation, search
 usermessage.Hook( )

Contents

Description

This feature is deprecated.

You should avoid using it as it may be removed in a future version.

You should be using net library instead

Sets a hook for the specified to be called when a usermessage with the specified name arrives.

WARNING Usermessages have a limit of only 256 bytes!

Arguments

string name

The message name to hook to.

Arguments

function callback

The function to be called if the specified message was received. Parameters (Optional):

Arguments

vararg preArgs=nil

Arguments that are passed to the callback function when the hook is called. *ring ring*
Personal tools
Navigation