Jump to content

help name of the place


Recommended Posts

Scripting/Lua related questions belongs to the Scripting section, @giovanymito post there next time.

Topic:

Use this function: https://wiki.multitheftauto.com/wiki/GetZoneName

You can use this resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=15870

And modify it so that shows custom names by indexing a table, like this:


local myZoneNames =
{
	["Ganton"] = "Custom name"
}

local px,py,pz = getElementPosition( thePlayer )
local playerzn = getZoneName( px,py,pz )

local newZoneName = myZoneNames[playerzn] or playerzn

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...