AddPlayerChat

From Onset Developer Wiki
Revision as of 14:49, 17 November 2019 by 28days (talk | contribs)
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