Jump to content

Set timer to destroy image


FuriouZ

Recommended Posts

Posted
         
setTimer(  
    function() 
    guiCreateStaticImage(0.19, 0.01, 0.63, 1.00, "img/level/levelUP.png", true)   
    end, 10000, 0) 
  

How to destroy this image after 20 seconds ?

Posted

or just ..

  
local image = .. gui image creation .. 
local timer = setTimer(function() 
guiSetVisible(image, false) -- False to hide, true to show 
end, 20000, 1) 
  

Note: i belive you need to define this type of timers to work. (with function)

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