getElementZoneName | Multi Theft Auto: Wiki Skip to content

getElementZoneName

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function allows you to retrieve the zone name of an element (eg. Verdant Bluffs or Ocean Docks)

Syntax

getElementZoneName ( )

Code Examples

server

This example shows you how to return your own location by doing /loc in the chatbox or just loc in console

function playerloc ( source )
local playername = getPlayerName ( source )
local location = getElementZoneName ( source )
outputChatBox ( "* " .. playername .. "'s Location: " .. location, getRootElement(), 0, 255, 255 ) -- Output the player's name and zone name
end
addCommandHandler ( "loc", playerloc )

See Also

Element Functions