Jump to content

Needing help


Recommended Posts

  • Moderators
@#Mr.Pres[T]ege

Also possible.

thanks where I put the setTimer?? inside the function?

Maybe you have to learn lua a little bit more. We are here to help you, not to make it for you.

Take a better look at the wiki mta samples.

  
function A () 
  
end 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function () 
setTimer (A,5000,1) --5000 = 5 seconds, 1 = one time executed. 
--add static image here 
end) 
  

Link to comment
addEventHandler("onClientResourceStart", resourceRoot, 
function ( ) 
   guiCreateStaticImage( 20, 200, 100, 100, "img.png", false ) 
   setTimer(5000,1) 
end 
) 

I only know that, I dont know what i need to put in isElement and destroyElement

addEventHandler('onClientResourceStart',resourceRoot, 
    function (      ) 
      local aImage =    guiCreateStaticImage( 20, 200, 100, 100, "img.png", false ) 
      setTimer(      
        function (  ) 
            if isElement ( aImage ) and guiGetVisible ( aImage ) then 
                destroyElement ( aImage ) 
                aImage = nil 
            end 
        end,5000,1 
        ) 
    end 
) 
  

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