GetAreaProperty
One of the mode’s values on an area.
Syntax
Section titled “Syntax”GetAreaProperty(name, key)| Parameter | Type | |
|---|---|---|
name |
string | the area |
key |
string | the value’s name |
Returns
Section titled “Returns”string|number|boolean - the value; nil when the area has none of that name
Example
Section titled “Example”if GetAreaProperty(area, "owner") ~= GetPlayerName(pid) then SendClientMessage(pid, COLOR_RED, "This plot is someone else's.")endSee also
Section titled “See also”SetAreaProperty · the The map’s areas group of the index
