TheSmart Posted July 28, 2015 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?
Cadell Posted July 28, 2015 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 Script Trading Status Successful Trading : 26 Scam : 0 On Sale : Banking System SQL Based On Sale : Housing System MySQL Based Download and Support my new script on Community : http://community.mtasa.com/index.php?p=resources&s=details&id=11686 SQL Based Housing
Dealman Posted July 28, 2015 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). If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
TheSmart Posted July 28, 2015 Author 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)
GTX Posted July 28, 2015 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) Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
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