local sw,sh = guiGetScreenSize()
local font = dxCreateFont("epikk.ttf", 18)
if not font then dxfont0_tekst = "sans" end
addEventHandler("onClientPreRender", root, function()
local x,y,z = getElementPosition(localPlayer)
local ulica = getZoneName(x,y,z, false)
local ulica2 = getZoneName(x,y,z, true)
if ulica2~=ulica then ulica = " "..ulica.."\n"..ulica2 else ulica = " "..ulica end
if dxSetAspectRatioAdjustmentEnabled then
dxSetAspectRatioAdjustmentEnabled(true)
end
if isPlayerHudComponentVisible("radar") and getElementInterior(localPlayer) == 0 then
dxDrawText(ulica, sw*4.2/20, sh*18/20, sw*4/20, sh*18/20+sh*1/21.9, tocolor(255, 255, 255,255), 0.50, font, "left", "center")
dxDrawRectangle(sw*2.5/20, sh*18/20, sw*0.7/4, sh*1/21.9, tocolor(inDMZone and 100 or 0, 0, 0, 100))
end
end)
---------------------------------
addEventHandler( "onClientRender", getRootElement(),
function ()
local x, y, z = getElementPosition(getLocalPlayer())
local ulica = getZoneName(x, y, z)
local ulica2 = ""
if miasto == "Las Venturas" then
nazwa = "Warszawa"
elseif miasto = "Los Santos" then
nazwa = "Bla bla"
end
dxDrawText(nazwa, 0, 0, 100, 100, tocolor(255, 255, 255,255), 0.50, font, "left", "center")
end
)
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()),
function ()
setPlayerHudComponentVisible(localPlayer, "area_name", false )
end)
Nic w tym nie zmieni?es, Chodzi mi o to ze 1 kod dza?a ze jak jestem w lv to pisze mi na lewo na dole Las Venturas \n Miasto jakie? a ja chce zeby pisa?o Warszawa \n Miasto jakies
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
local sw,sh = guiGetScreenSize()
local font = dxCreateFont("epikk.ttf", 18)
if not font then dxfont0_tekst = "sans" end
addEventHandler("onClientPreRender", root, function()
local x,y,z = getElementPosition(localPlayer)
local miasto = getZoneName(x,y,z, false)
local dzielnica = getZoneName(x,y,z, true)
local city = ""
if miasto == "Las Venturas" then
city = "Warszawa"
elseif miasto == "Los Santos" then
city = "Wroc?aw"
else
city = miasto
end
if city~=dzielnica then text = " "..city.."\n"..dzielnica else text = " "..city end
if dxSetAspectRatioAdjustmentEnabled then
dxSetAspectRatioAdjustmentEnabled(true)
end
if isPlayerHudComponentVisible("radar") and getElementInterior(localPlayer) == 0 then
dxDrawText(city, sw*4.2/20, sh*18/20, sw*4/20, sh*18/20+sh*1/21.9, tocolor(255, 255, 255,255), 0.50, font, "left", "center")
dxDrawRectangle(sw*2.5/20, sh*18/20, sw*0.7/4, sh*1/21.9, tocolor(inDMZone and 100 or 0, 0, 0, 100))
end
end)
local sw,sh = guiGetScreenSize()
local font = dxCreateFont("epikk.ttf", 18)
if not font then dxfont0_tekst = "sans" end
addEventHandler("onClientPreRender", root, function()
local x,y,z = getElementPosition(localPlayer)
local miasto = getZoneName(x,y,z, false)
local dzielnica = getZoneName(x,y,z, true)
local city = ""
if miasto == "Las Venturas" then
city = "Warszawa"
elseif miasto == "Los Santos" then
city = "Wroc?aw"
else
city = miasto
end
if city~=dzielnica then text = " "..city.."\n"..dzielnica else text = " "..city end
if dxSetAspectRatioAdjustmentEnabled then
dxSetAspectRatioAdjustmentEnabled(true)
end
if isPlayerHudComponentVisible("radar") and getElementInterior(localPlayer) == 0 then
dxDrawText(city, sw*4.2/20, sh*18/20, sw*4/20, sh*18/20+sh*1/21.9, tocolor(255, 255, 255,255), 0.50, font, "left", "center")
dxDrawRectangle(sw*2.5/20, sh*18/20, sw*0.7/4, sh*1/21.9, tocolor(inDMZone and 100 or 0, 0, 0, 100))
end
end)
Niby ok. Ale jest 1 ale
Widze ze jest warszawa ale pod tym powino by? miasto a jest tak:
Nie ma tego warszawa ani LV tylko ulica i pisze np:
Ulica
A ma by?
Miasto
Ulica
i w miejscach gdzie nie ma miasta pisze Warszawa
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
local sw,sh = guiGetScreenSize()
local font = dxCreateFont("epikk.ttf", 18)
if not font then dxfont0_tekst = "sans" end
addEventHandler("onClientPreRender", root, function()
local x,y,z = getElementPosition(localPlayer)
local miasto = getZoneName(x,y,z, false)
local dzielnica = getZoneName(x,y,z, true)
local city = ""
if miasto == "Las Venturas" then
city = "Warszawa"
elseif miasto == "Los Santos" then
city = "Wroc?aw"
else
city = miasto
end
if city~=dzielnica then text = " "..city.."\n"..dzielnica else text = " "..city end
if dxSetAspectRatioAdjustmentEnabled then
dxSetAspectRatioAdjustmentEnabled(true)
end
if isPlayerHudComponentVisible("radar") and getElementInterior(localPlayer) == 0 then
dxDrawText(text, sw*4.2/20, sh*18/20, sw*4/20, sh*18/20+sh*1/21.9, tocolor(255, 255, 255,255), 0.50, font, "left", "center")
dxDrawRectangle(sw*2.5/20, sh*18/20, sw*0.7/4, sh*1/21.9, tocolor(inDMZone and 100 or 0, 0, 0, 100))
end
end)
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Bo w kodzie masz tylko tak, ?e ma zamienia? Las Venturas na Warszawa a jak wida? na ss nie jeste? w Las Venturas tylko w redsands east czyli dzielnicy w LV.
[ Dodano: 2016-08-01, 14:23 ]
local sw,sh = guiGetScreenSize()
local font = dxCreateFont("epikk.ttf", 18)
if not font then dxfont0_tekst = "sans" end
addEventHandler("onClientPreRender", root, function()
local x,y,z = getElementPosition(localPlayer)
local miasto = getZoneName(x,y,z, false)
local dzielnica = getZoneName(x,y,z, true)
local city = ""
if miasto == "Las Venturas" or miasto == "Redsands East" then
city = "Warszawa"
elseif miasto == "Los Santos" then
city = "Wroc?aw"
else
city = miasto
end
if city~=dzielnica then text = " "..city.."\n"..dzielnica else text = " "..city end
if dxSetAspectRatioAdjustmentEnabled then
dxSetAspectRatioAdjustmentEnabled(true)
end
if isPlayerHudComponentVisible("radar") and getElementInterior(localPlayer) == 0 then
dxDrawText(text, sw*4.2/20, sh*18/20, sw*4/20, sh*18/20+sh*1/21.9, tocolor(255, 255, 255,255), 0.50, font, "left", "center")
dxDrawRectangle(sw*2.5/20, sh*18/20, sw*0.7/4, sh*1/21.9, tocolor(inDMZone and 100 or 0, 0, 0, 100))
end
end)
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach