Lua Events/OnWorldMessage

From PZwiki



Event

OBSOLETE
OnWorldMessage

Description

Triggered when a world message is being received.

Parameters

  • String The user sending the message.
  • String The message that is being sent.
  • Boolean Whether the message should be displayed as local.
  • Boolean Whether the message should be prefixed with the timestamp.

Examples

local function OnWorldMessage(user, message, addLocal, addTimestamp)
	-- Your code here
end

Events.OnWorldMessage.Add(OnWorldMessage)

See also