Hi all my problem is this I want a global dxDrawText, I CREATE it but it only comes to me
function Clicks()
if source == GUIEditor.button[1] then
---------------funciones de aplicacion
local Tittle = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1)
local R1 = guiGetText(GUIEditor.edit[1])
local G1 = guiGetText(GUIEditor.edit[2])
local B1 = guiGetText(GUIEditor.edit[3])
local Rojo, Verde, Azul = tonumber(R1) or 255,tonumber(G1) or 255 ,tonumber(B1) or 255
cursorLA(false)
guiSetVisible(GUIEditor.window[1], false)
removeEventHandler("onClientRender", root, DX)
triggerServerEvent("guardarTag", localPlayer, Tittle, R1, G1, B1)
startIT(Tittle, R1,G1,B1)
elseif source == GUIEditor.button[2] then
cursorLA(false)
removeEventHandler("onClientRender", root, DX)
guiSetVisible(GUIEditor.window[1], false)
setElementData(localPlayer,"AutoPanel", "no")
end
end
addEventHandler("onClientGUIClick", resourceRoot, Clicks)
end
end-- condicion
end
function startIT(Tittle, R1,G1,B1)
function TextDrawed()
dxDrawTextOnElement(localPlayer,tostring(Tittle),1,20,0,tonumber(R1),tonumber(G1),tonumber(B1),1,font)-- HOW CAN I DO THIS DX TEXT GLOBAL
end
addEventHandler("onClientRender", root, TextDrawed)
end