ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPlayerLoading

Function

isPlayerLoading

ServerPlayersTrilogy Hub only

Returns true until the player enters the world for the first time. After the first spawn it is false for good. Unlike isPlayerSpawned it does not go back to true after death.

Syntax

bool isPlayerLoading(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

true while loading.

Example

addCommandHandler("zapros", function(player, cmd, name)
    local target = name and getPlayerFromName(name)
    if target and isPlayerLoading(target) then
        outputChatBox("Gracz jeszcze się ładuje.", player)
    end
end)

See also