SetZoneData
Stores a value on a zone, private to the server.
Any Lua value; gone with the zone. The mode’s way to mark what a zone is for.
Syntax
Section titled “Syntax”SetZoneData(id, key, value)| Parameter | Type | |
|---|---|---|
id |
number | the zone |
key |
string | the key |
value |
any | the value; nil removes the key |
Returns
Section titled “Returns”boolean - false when there is no such zone
Example
Section titled “Example”local safe = CreateCircleZone(x, y, 20)SetZoneData(safe, "safe", true)See also
Section titled “See also”GetZoneData · SetPlayerData · SetEntityData · the Zones group of the index
