- Documentation
- Shared functions
- getZoneNames
Function
getZoneNames
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 = falsetrue= region names.
Returns
An array of names.
Example
for _, name in ipairs(getZoneNames(true)) do outputDebugString(name) end
See also
getZoneNameReturns the name of the district (map zone) at a point, e.g."Grove Street","Idlewood","Downtown Los Santos"- what the game shows on screen when you enter a new area. WithcitiesOnly = trueit returns the region name ("Los Santos","San Fierro","Las Venturas","Red County"…). Works on both sides on the data of the game's 356 zones, without asking a client.getZoneBoundsReturns the box enclosing a whole zone (all its parts) with the given name: minimum and maximum coordinates. When there is no such district it looks for a region.