GangZone
A gang zone: a colored world rectangle on the radar and the map, owned by the resource that created it (removed when that resource stops). Actions on a removed zone return nil, err.
GangZone:id
Returns id integer
GangZone:set_area
Moves the zone to this rectangle of the world.
Parameters
min_xnumber— Belowmax_x.min_ynumber— Belowmax_y.max_xnumbermax_ynumber
Returns ok boolean|nil, err string|nil
GangZone:set_color
Parameters
colorinteger— 0xRRGGBBalpha(optional)integer— 0..255; if omitted, the current alpha is kept.
Returns ok boolean|nil, err string|nil
GangZone:flash
Makes the zone pulse between its color and this one until stop_flash. Persists across set_color.
Parameters
colorinteger— 0xRRGGBB
Returns ok boolean|nil, err string|nil
GangZone:stop_flash
Returns ok boolean|nil, err string|nil
GangZone:show
Shows the zone to one player, or to everyone, which clears the per-player settings. A per-player setting is cleared when that player leaves.
Parameters
player(optional)Player
Returns ok boolean|nil, err string|nil
GangZone:hide
Hides the zone from one player, or from everyone, which clears the per-player settings.
Parameters
player(optional)Player
Returns ok boolean|nil, err string|nil
