Jump to content

animation


TheSmart

Recommended Posts

: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) 

Link to comment
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) 

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