Jump to content

dxDrawImage HELP


Lloyd Logan

Recommended Posts

Posted

Hi,

I created a login panel with dxDrawImage in the GUI panel, when i click login, all elements are destroyed, which is what i want with destroyElement, but the dxDrawImage is there? How, when i press login (buLogin) can i get rid of dxDrawImage?

Thanks Lloyd.

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
use guiSetVisible instead of destroyElement.

So guiSetVisible when button buLogin is clicked?

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
Yes
addEventHandler("onClientGUIClick", buLogin, 
function () 
guiSetVisible(guiElementVariable, false) 
end 
end)  

Thank you

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
No problem, did it work??

It hasn't xD, is this because of maybe on client render? I am going out, but i will look into this, it should be so simple!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
i think you should remove the event handler

I am not too sure by what you mean here, If you are meaning to remove the removeEventHandler for the other Elements, i'll try, but if you mean removeEventHandler on the dxDrawImage, that is not what i am currently doing?

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

yes the latter is what he means

for example, if you did this to add the eventhandler:

  
function drawSomething() 
 dxDrawImage3D(vx,vy,vz, 3, 3, face, tocolor(255,255,255,255),0, ax,ay,az ) 
end 
  
addEventHandler("onClientRender", root, drawSomething ); 

then you remove it by doing

removeEventHandler("onClientRender", root, drawSomething ); 

Posted
yes the latter is what he means

for example, if you did this to add the eventhandler:

  
function drawSomething() 
 dxDrawImage3D(vx,vy,vz, 3, 3, face, tocolor(255,255,255,255),0, ax,ay,az ) 
end 
  
addEventHandler("onClientRender", root, drawSomething ); 

then you remove it by doing

removeEventHandler("onClientRender", root, drawSomething ); 

Yes, thanks alot!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

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