ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onPlayerReady

Event

onPlayerReady

ServerPlayersTrilogy Hub only

The player has loaded the game and appeared in the world for the first time. A good place for a welcome, because the player can already see the screen.

Handler

addEventHandler("onPlayerReady", root, function() ... end)

Source

source is the player.

Example

addEventHandler("onPlayerReady", root, function()
    outputChatBox("Miłej gry, " .. getPlayerName(source) .. "!", source, 255, 122, 34)
end)

See also