ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getZoneNames

Function

getZoneNames

Server and clientWorldTrilogy Hub only

Returns a sorted list of all district names (without duplicates) or, with citiesOnly = true, region names. Good for selection lists in panels.

Syntax

table getZoneNames([bool citiesOnly = false])

Arguments

citiesOnlybool, optional = false
true = region names.

Returns

An array of names.

Example

for _, name in ipairs(getZoneNames(true)) do outputDebugString(name) end

See also