ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getElementZoneName

Function

getElementZoneName

ServerElementsIdentical to MTA:SA

Returns the name of the map zone where the element is (e.g. "Ganton"), or just the city.

Syntax

string getElementZoneName(element theElement [, bool citiesOnly = false])

Arguments

theElementelement
The element.
citiesOnlybool, optional = false
true returns the city only.

Returns

The zone name.

Example

addCommandHandler("gdzie", function(player)
    outputChatBox("Jesteś w: " .. getElementZoneName(player) .. ", " .. getElementZoneName(player, true), player)
end)

See also