AddPlayerChat: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Adds (or sends) the specified player or client a message.}}


{{FuncSyntax|AddPlayerChat(player, message)}}
{{FuncSyntax|AddPlayerChat(player, message)}}
Line 7: Line 7:


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|__EDIT_ME__}}
{{FuncParam|player|The player indentifier.}}
{{FuncParam|message|__EDIT_ME__}}
{{FuncParam|message|The chat message.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
AddCommand("commands", function(playerid)
AddPlayerChat(playerid, "You just executed a command!")
return
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[AddPlayerChat]]
* [[AddPlayerChatAll]]
* [[AddPlayerChatRange]]

Revision as of 14:49, 17 November 2019

AddPlayerChat

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Adds (or sends) the specified player or client a message.

Syntax

AddPlayerChat(player, message)
Client Syntax
AddPlayerChat(message)

Parameters

  • player
    The player indentifier.
  • message
    The chat message.

Return Value

  • __EDIT_ME__

Example

AddCommand("commands", function(playerid)
	AddPlayerChat(playerid, "You just executed a command!")
	return
end)

See also