Jump to content

Position name


-Doc-

Recommended Posts

  • MTA Team

First disable showing default zone names.

showPlayerHudComponent("area_name",false) 

Then use:

getZoneName 

In adition to a table like this:

local customNames = { 
['Los Santos'] = "Custom Name", 
['San Fierro'] = "Custom Name" 
} 

Then just use a loop like:

local zone = getZoneName(...) 
for index, value in pairs(customNames)do 
if index == zone then 
dxDrawText(value,...) 
end 
end 

Or simply:

local zone = getZoneName(...) 
local cus = customNames[zone] 
dxDrawText(cus,...) 

PS: Made it in the mobile, there could be some mistake.

Link to comment
First disable showing default zone names.
showPlayerHudComponent("area_name",false) 

Then use:

getZoneName 

In adition to a table like this:

local customNames = { 
['Los Santos'] = "Custom Name", 
['San Fierro'] = "Custom Name" 
} 

Then just use a loop like:

local zone = getZoneName(...) 
for index, value in pairs(customNames)do 
if index == zone then 
dxDrawText(value,...) 
end 
end 

Or simply:

local zone = getZoneName(...) 
local cus = customNames[zone] 
dxDrawText(cus,...) 

PS: Made it in the mobile, there could be some mistake.

and he can edit getZoneName function so it will be more easier than do "if zonename == zone then" everytime

local customNames = { 
['Los Santos'] = "Custom Name", 
['San Fierro'] = "Custom Name" 
} 
  
function getZoneName(x,y,z,citiesonly) 
    if type(x) == "number" and type(y) == "number" and type(z) == "number" then 
    return customNames[getZoneName(x,y,z,citiesonly or false)] or getZoneName(x,y,z,citiesonly or false) 
    end 
end 

Link to comment

where I think all the names of the areas?

local customNames = { 
['Los Santos'] = "Custom Name", 
['San Fierro'] = "Custom Name" 
['name?'] = "Custom Name" 
['name?'] = "Custom Name" 
['name?'] = "Custom Name" 
['name?'] = "Custom Name" 
} 

Link to comment
where I think all the names of the areas?
local customNames = { 
['Los Santos'] = "Custom Name", 
['San Fierro'] = "Custom Name" 
['name?'] = "Custom Name" 
['name?'] = "Custom Name" 
['name?'] = "Custom Name" 
['name?'] = "Custom Name" 
} 

AkSHYpg.png

Link to comment
I have my unique scripts so shutup. :twisted:

"unique"? God damn. No Dm mode is actually Chaos MTA Freeroam's No Dm mode, which you are using. Your freeroam panel, hud and all other shit is copied from Grafuroam. I guess, how that makes you unique? :roll:

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...