MiniGoveya Posted October 22, 2010 Share Posted October 22, 2010 Hello people, I'm here to ask you, how I can put characters dancing in my map? . Bye. Link to comment
dzek (varez) Posted October 22, 2010 Share Posted October 22, 2010 bots? createPed and search the wiki for "animation" .. too lazy to do that? Link to comment
MiniGoveya Posted October 22, 2010 Author Share Posted October 22, 2010 I have tried with this but isn't work: function pedLoad ( name ) ped1 = createPed ( 181, 6300.6533203125, -279.70327758789, 35.169315338135 ) setPedRotation (ped1, 342) setPedAnimation( ped1, "ped", "DAN_Loop_A") end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) What is wrong? Link to comment
Ryan1010 Posted October 23, 2010 Share Posted October 23, 2010 Try this, it should work. function makePed() ped1 = createPed ( 181, 6300.6533203125, -279.70327758789, 35.169315338135 ) setPedRotation(ped1, 315) setPedAnimation( ped1, "ped","WOMAN_walknorm") end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), makePed ) Btw, this is client side. Link to comment
Discord Moderators Zango Posted October 23, 2010 Discord Moderators Share Posted October 23, 2010 (edited) try setting a timer of 200 ms to apply the rotation and animation if else fails Edited October 25, 2010 by Guest Link to comment
MiniGoveya Posted October 24, 2010 Author Share Posted October 24, 2010 Try this, it should work. function makePed() ped1 = createPed ( 181, 6300.6533203125, -279.70327758789, 35.169315338135 ) setPedRotation(ped1, 315) setPedAnimation( ped1, "ped","WOMAN_walknorm") end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), makePed ) Btw, this is client side. Thanks 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