- Documentation
- Server functions
- isPlayerLoading
Function
isPlayerLoading
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)