RoomService v2.3.1
Loading...
Searching...
No Matches
RoomService.SendPrivateChatMessage Class Reference

Lua function to send a private chat message to a specific player.

Member Function Documentation

◆ Implementation()

void RoomService.SendPrivateChatMessage.Implementation ( ulong steamID,
string prefix,
string message )
inlineprivate

Usage:

RoomService.SendPrivateChatMessage("76561197993793009", "ByteBot", "Hello Kilandor");
Lua function to send a private chat message to a specific player.
Definition RoomServiceLuaFunctions.cs:50
Definition MyPluginInfo.cs:2
Parameters
steamIDThe Steam ID of the recipient.
prefixThe prefix for the message.
messageThe 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 }