Garry's Mod Wiki

usermessage.Hook

usermessage.Hook( string name, function callback, vararg preArgs = nil )

Description

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

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

Usermessages have a limit of only 256 bytes!

Arguments

1 string name
The message name to hook to.
2 function callback
The function to be called if the specified message was received. Parameters (Optional):

3 vararg preArgs = nil
Arguments that are passed to the callback function when the hook is called. ring ring

Page Links


Special Pages


Wikis

?

Render Time: 34ms

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