Table of Contents

sendSystemMsg

How to use

 Chat:sendSystemMsg(content, targetuin) 

Where:

And returns:

Use example

When a player joins, he will see a message.

ScriptSupportEvent:registerEvent([=[Game.AnyPlayer.EnterGame]=], function(e) 
 
    local playerid = e['eventobjid']
    local _, playernick = Player:getNickname(playerid)
 
    Chat:sendSystemMsg("Welcome, " .. playernick, playerid)
 
end)