Hello, i have a problem. The zone name won't draw, if i put the code in main hud it screws up.
------------>>
local screenW, screenH = guiGetScreenSize ( )
function renderNewLocation()
-- if (not isPlayerHudComponentVisible("radar") or isPlayerMapVisible() or not hudEnabled) then return end
local x,y,z = getElementPosition(localPlayer)
local zone = getZoneName(x, y, z)
if (zone == "El Castillo del Diablo") then zone = "Ghost Town" end
if (cur_zone == zone) then return end
cur_zone = zone
dxDrawShadowText(zone, screenW*(280/1980), 30, screenW*(280/1980), 30, tocolor(254, 254, 254, 255), scale,"bankgothic", "center", "top", false, false, true, true, false)
outputChatBox(zone)
end
addEventHandler("onClientRender",root,renderNewLocation)