Jump to content

Ped's Dancing


MiniGoveya

Recommended Posts

Posted

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?

Posted

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.

  • Discord Moderators
Posted (edited)

try setting a timer of 200 ms to apply the rotation and animation if else fails

Edited by Guest
Posted
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 :roll:

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