Jump to content

A title in my head global


BrAnKiLlEr_07

Recommended Posts

 
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

Edited by BrAnKiLlEr_07
AN ERROR IN THE TITTLE X2
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...