Functions/DarkRP/Server/talkToPerson

From Official DarkRP Wiki
Revision as of 13:39, 8 July 2017 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Function
Function name DarkRP.talkToPerson(Player receiver, Color col1, string text1, Color col2, string text2, Player sender)
Description:
Send a chat message to a player.
Returns: nil
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/talkToPerson]DarkRP.talkToPerson[/url][/b]

Function parameters

  1. receiver (Player)
  2. The receiver of the message.

  3. col1 (Color)
  4. The color of the first part of the message.

  5. text1 (string)
  6. The first part of the message.

  7. col2 (Color)
  8. The color of the second part of the message.

  9. text2 (string)
  10. The secpnd part of the message.

  11. sender (Player) (optional)
  12. The sender of the message.


Function return values

This function does not return any value.