Skip to content

GetPlayerZones

The zones a player is inside right now.

GetPlayerZones(pid)
Parameter Type
pid number the player

table - a list of zone ids

for _, zone in ipairs(GetPlayerZones(pid)) do Log(GetPlayerName(pid), "is in zone", zone) end

IsPlayerInZone · GetZonePlayers · the Zones group of the index