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

Function

getDeadPlayers

ServerPlayersIdentical to MTA:SA

Returns the players who are dead or have not spawned yet.

Syntax

table getDeadPlayers()

Returns

A table of players.

Example

setTimer(function()
    for _, p in ipairs(getDeadPlayers()) do
        spawnPlayer(p, 2495, -1687, 13.5)
    end
end, 10000, 0)