ClearPlayerChat
Empties a player’s chat.
The player’s chat forgets every line it holds. The F9 window keeps its own copy of the lines. Nothing is said to the player: send a line afterwards if they should be told.
Syntax
Section titled “Syntax”ClearPlayerChat(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean - false when not connected
Example
Section titled “Example”RegisterCommand("clear", function(pid) ClearPlayerChat(pid) SendChatMessage(pid, "Your chat was emptied.")end, { help = "Empty your chat" })See also
Section titled “See also”SendChatMessage · SendClientMessage · RegisterCommand · the Chat and commands group of the index
