Jump to content

Destruir dxDrawText


Recommended Posts

Como posso fazer para quando clicar em um botão essa dx destrua (suma)

addEventHandler("onClientRender", root, 
    function() 
     local sW,sH = guiGetScreenSize() 
        dxDrawText("Teste",sW*4/1280,sH*4/800,sW*112/1280, sH*64/80, tocolor(255, 0, 0, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) 
    end 
) 

button:

GUIEditorlabel3 = guiCreateLabel(0.02, 0.00, 0.98, 1.00, "JOGAR", true, GUIEditorstaticimageA) 

Link to comment
    local sW,sH = guiGetScreenSize() 
    function render() 
        dxDrawText("Teste",sW*4/1280,sH*4/800,sW*112/1280, sH*64/80, tocolor(255, 0, 0, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) 
    end 
addEventHandler("onClientRender", root, render ) 

use

removeEventHandler("onClientRender", root, render ) 

:wink:

Link to comment
    local sW,sH = guiGetScreenSize() 
    function render() 
        dxDrawText("Teste",sW*4/1280,sH*4/800,sW*112/1280, sH*64/80, tocolor(255, 0, 0, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) 
    end 
addEventHandler("onClientRender", root, render ) 

use

removeEventHandler("onClientRender", root, render ) 

:wink:

obrigado, não sabia desta.

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