Skip to content

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.

SetZoneData(id, key, value)
Parameter Type
id number the zone
key string the key
value any the value; nil removes the key

boolean - false when there is no such zone

local safe = CreateCircleZone(x, y, 20)
SetZoneData(safe, "safe", true)

GetZoneData · SetPlayerData · SetEntityData · the Zones group of the index