OnPlayerPrivateMessage

From Multi Theft Auto: Wiki
Revision as of 14:50, 19 October 2009 by Awwu (talk | contribs) (Created page with '__NOTOC__ {{Server event}} This event is triggered when a player sends a private message with ''msg'' command. ==Parameters== <syntaxhighlight lang="lua"> string message, player recipient </co…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered when a player sends a private message with msg command.

Parameters

string message, player recipient
  • message: A string representing the private message typed.
  • recipient: The player to whom the message is being sent.

Source

The source of this event is the player who sent the private message.

Cancel effect

If this event is canceled, the game's chat system won't deliver the message. You may use outputChatBox to send the messages then.

Example

-- TODO

See Also

Player events


Event functions