Send
This function can be used to send a packet of information to any Steam user.
Syntax
- boolean P2P:Send(string steamid, number messageid, BankStream data, number channel = 0, number flags = 0)
- boolean P2P:Send(string steamid, number messageid, Bank data, number channel = 0, number flags = 0)
- boolean P2P:Send(string steamid, number messageid, number channel = 0, number flags = 0)
- boolean P2P:Send(string steamid, number messageid, string data, number channel = 0, number flags = 0)
Parameters
- steamid: the Steam ID of the player you are sending the message to.
- messageid: an ID for the message.
- data: an optional bit of data you can include in the message.
- channel: the channel the message will be received on.
- flags: by default packets are unreliable. This can be set to Reliable for important messages you don't want to lose, but by default this should be zero.
Returns
Returns true if the message was sent successfully.