Giovany Mito Posted July 8, 2019 Share Posted July 8, 2019 Hello, I do not know how to explain more like I do to get those name that keeps appearing in every region of the map ?? Is it possible for me to create a region with the names I want? Link to comment
DNL291 Posted July 8, 2019 Share Posted July 8, 2019 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now