Jump to content

PedAnim , help me with my script


Recommended Posts

hi ,

When do I start the script puts her to me:

[2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:3 Bad argument @ 'setPedRotation' [Expected element at argument 1, got boolean]

[2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:4 Bad argument @ 'setPedAnimation' [Expected element at argument 1, got boolean]

function pedLoad () 
APed = createPed ( 83, 2353, 2143, 11 ) 
setTimer(setPedRotation,5000,1,APed,270 ) 
setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) 

Link to comment
hi ,

When do I start the script puts her to me:

[2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:3 Bad argument @ 'setPedRotation' [Expected element at argument 1, got boolean]

[2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:4 Bad argument @ 'setPedAnimation' [Expected element at argument 1, got boolean]

function pedLoad () 
APed = createPed ( 83, 2353, 2143, 11 ) 
setTimer(setPedRotation,5000,1,APed,270 ) 
setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) 

there's no problem with this script just put it in meta to server side

Link to comment
  
  
function pedLoad () 
  
APed = createPed ( 83, 2353, 2143, 11 ) 
if APed and isElement( APed ) then 
 setTimer(setPedRotation,5000,1,APed,270 ) 
  
setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) 
else   
      outputChatBox("ERROR: Could not create ped") 
     end 
end 
  
addEventHandler ( "onResourceStart", resourceRoot, pedLoad ) 
  

Link to comment

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