ArwinK Posted May 5, 2017 Share Posted May 5, 2017 (edited) --Creating the ped drugDealer = createPed( 121, 2486, -1650.9, 13.5, 90.762) function startWalking() setPedAnimation( drugDealer, "ped", "WALK_gang1", 10000, true, true, false) setPedAnimation( drugDealer, "ped", "WALK_gang2", 10000, true, true, false) end Help. When I run this script I would the ped walk for ten seconds then change his walk style to gang2 after it, but it just run the second animation, please help on this. Edited May 5, 2017 by ArwinK Link to comment
pa3ck Posted May 5, 2017 Share Posted May 5, 2017 (edited) Unfortunately MTA doesn't offer that by default, you will have to use timers here like: setPedAnimation(..., 10000) setTimer(function() setPedAnimation(..., 10000) end, 10000, 1) Edited May 5, 2017 by pa3ck Link to comment
Fist Posted May 5, 2017 Share Posted May 5, 2017 there is specific function to change ped walking style with setPedWalkingStyle Link to comment
ArwinK Posted May 6, 2017 Author Share Posted May 6, 2017 thanks but what bout another animations like change from dance to walk? 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