SendChatMessageToPlayer
Jump to navigation
Jump to search
SendChatMessageToPlayerServer-Side Function
![]() |
![]() |
---|
Sends a message to the targeted player.
2 overloads
Syntax
void NAPI.Chat.SendChatMessageToPlayer(Client player, string message, bool oldColors = true);
void NAPI.Chat.SendChatMessageToPlayer(Client player, string sender, string message, bool oldColors = true);
Required Arguments
- player: parameter input should be in Client type.
- message: parameter input should be in string type.
Optional Arguments
- sender: parameter input should be in string type.
- oldColors: parameter input should be in bool type.
Usage examples
NAPI.Chat.SendChatMessageToPlayer(player, "This is a message!");
NAPI.Chat.SendChatMessageToPlayer(player, "Example says", "This is a message!");
Changelog
Version | Description |
---|---|
1.0 | Release. |