Lua function to send a private chat message to a specific player.
◆ Implementation()
| void RoomService.SendPrivateChatMessage.Implementation |
( |
ulong | steamID, |
|
|
string | prefix, |
|
|
string | message ) |
|
inlineprivate |
Usage:
Lua function to send a private chat message to a specific player.
Definition RoomServiceLuaFunctions.cs:50
Definition MyPluginInfo.cs:2
- Parameters
-
| steamID | The Steam ID of the recipient. |
| prefix | The prefix for the message. |
| message | The content of the message. |
Source Code
67 {
68 if (string.IsNullOrEmpty(prefix) || string.IsNullOrEmpty(message))
69 {
70 return;
71 }
72
73 if (!RoomServiceUtils.IsOnlineHost())
74 {
75 return;
76 }
77
78 ZeepkistNetwork.SendCustomChatMessage(false, steamID, message, prefix);
79 }