AddPlayerChat: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
Line 10: Line 10:
{{FuncParam|message|The chat message.}}
{{FuncParam|message|The chat message.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true'''.}}


== Example ==
== Example ==

Revision as of 23:28, 24 December 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

  • Returns true.

Example

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

See also