onTalk

Getting triggered when the client received a chat message.

Prototypes
onTalk(callback) -- callback = function(name, level, mode, text, channelId, pos)
Parameters
    • function(name, level, mode, text, channelId, pos): callback function
      • name: string
      • level: integer
      • mode: integer
      • text: string
      • channelId: integer
      • pos: position object (contains x, y, z)
Usage
onTalk(function(name, level, mode, text, channelId, pos)
  print(name .. " said " .. text)
end)