HolyLib Wiki

HolyLib.ReceiveClientMessage

  HolyLib.ReceiveClientMessage( number userid, Entity ent, bf_read buffer, number bits )

Description

Feeds the given buffer into the engine as if it were a net message that was just received from the given client.
A direct engine bind to IServerGameClients::GMOD_ReceiveClientMessage

If the bitbuf module is disabled, it will throw a lua error!

Arguments

1number userid

userid of the client the message should appear to originate from

2Entity ent

the client's player entity

3bf_read buffer

the buffer containing the message to process

4number bits

number of bits in the buffer that should be read