Jump to content

Clicking on image help


callum123

Recommended Posts

Client
  
img2 = guiCreateStaticImage(0.0217,0.0264,0.2928,0.2178,"gg.png",true,window) 
  
  
function eta() 
if (source == img2) then 
guiSetVisible ( graag, true ) --  
   end 
end 
addEventHandler("onClientGUIClick",img2,eta,false) 

lol.

It works, but it flickers which is kind of annoying. Also if you do anything beside click to the image, such and hold and drag the cursor then the image will be on top again.

This should work without flickers.

guiSetProperty(img, "AlwaysOnTop", "true") 

Link to comment
  
img2 = guiCreateStaticImage(0.0217,0.0264,0.2928,0.2178,"gg.png",true) 
  
window = guiCreateStaticImage(290,86,461,606,"shruk.png",false) 
guiSetVisible(window,false) 
  
function eta() 
if (source == img2) then 
guiSetVisible ( window, true ) -- u r window  
   end 
end 
addEventHandler("onClientGUIClick",img2,eta,false) 

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