Skip to content

GetPlayerTrespass

The trespass level a player’s game shows now.

With what set it: "level" - the level’s own areas (their game’s word: "public" until it has reported), "area" - one of the map’s areas (its name third), "player" - SetPlayerTrespass.

GetPlayerTrespass(pid)
Parameter Type
pid number the player

string, string, string|nil - the level, the source and the area; nil when the player is not connected

local level, source, area = GetPlayerTrespass(pid)
if level == "personal" and source == "area" then Log(GetPlayerName(pid) .. " is in " .. area) end

OnPlayerTrespassChange · the The map’s areas group of the index