GetPlayerZones
The zones a player is inside right now.
Syntax
Section titled “Syntax”GetPlayerZones(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”table - a list of zone ids
Example
Section titled “Example”for _, zone in ipairs(GetPlayerZones(pid)) do Log(GetPlayerName(pid), "is in zone", zone) endSee also
Section titled “See also”IsPlayerInZone · GetZonePlayers · the Zones group of the index
