Skip to content

SetAreaProperty

Keeps one of the mode’s values on an area.

A string, a number or a boolean; nil takes the key away. The values are kept with the area in the map - after a restart too (an area with persist = false lasts for the run). At most 32 keys an area.

SetAreaProperty(name, key, value)
Parameter Type
name string the area
key string the value’s name (1 .. 64 characters)
value string|number|boolean|nil the value

boolean - true; false and the reason

SetAreaProperty("Plot 7", "owner", GetPlayerName(pid))

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