TheSmart Posted July 28, 2015 Share Posted July 28, 2015 hey guys! how i can do it when one animation complete after 5 second then start different animation? can anybody give me example to do that? Link to comment
Cadell Posted July 28, 2015 Share Posted July 28, 2015 https://wiki.multitheftauto.com/wiki/InterpolateBetween Here u can read about creating animations and just use timer so that after 5 sec it again animate Link to comment
Dealman Posted July 28, 2015 Share Posted July 28, 2015 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). Link to comment
TheSmart Posted July 28, 2015 Author Share Posted July 28, 2015 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
GTX Posted July 28, 2015 Share Posted July 28, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now