Skip to content

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_x number — Below max_x.
  • min_y number — Below max_y.
  • max_x number
  • max_y number

Returns ok boolean|nil, err string|nil

GangZone:set_color ​

Parameters

  • color integer — 0xRRGGBB
  • alpha (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

  • color integer — 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

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

Returns ok boolean|nil, err string|nil

Documentation licensed under CC BY 4.0. DarqlineMP is not affiliated with Rockstar Games or Take-Two Interactive. Grand Theft Auto is a trademark of Take-Two Interactive Software, Inc.