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.
Syntax
Section titled “Syntax”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 |
Returns
Section titled “Returns”boolean - true; false and the reason
Example
Section titled “Example”SetAreaProperty("Plot 7", "owner", GetPlayerName(pid))See also
Section titled “See also”GetAreaProperty · the The map’s areas group of the index
