Jump to content

animation


TheSmart

Recommended Posts

Posted

What kind of animation? Ped animation? Interface animation? You really need to provide us with more details.

Either way, you can use setTimer to create a timer and set it to 5 seconds(5 000ms).

Posted

:P opps i mean ped animation

function buy(button,state) 
       if (button == "left" and state == "up") then 
           if (source == buybtn) then 
           takePlayerMoney ( 1000 ) 
                   setPedAnimation( localPlayer,"BAR", "dnk_stndF_loop", 5000, false, false, false, false ) --- after this how i can start next this animation? idk how to use setTimer  
           setPedAnimation( localPlayer,"BAR", "dnk_stndM_loop", 5000, false, false, false, false ) 
              removeEventHandler("onClientRender", root, dx) 
           showCursor(false) 
       end 
    end 
end 
addEventHandler("onClientGUIClick", getRootElement(), buy) 

Posted
function buy(button,state) 
       if (button == "left" and state == "up") then 
           if (source == buybtn) then 
           takePlayerMoney ( 1000 ) 
               setPedAnimation( localPlayer,"BAR", "dnk_stndF_loop", 5000, false, false, false, false ) --- after this how i can start next this animation? idk how to use setTimer 
               setTimer(setPedAnimation, 5000, 1, localPlayer,"BAR", "dnk_stndM_loop", 5000, false, false, false, false ) 
              removeEventHandler("onClientRender", root, dx) 
           showCursor(false) 
       end 
    end 
end 
addEventHandler("onClientGUIClick", getRootElement(), buy) 

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