Jump to content

setPedAnimation


Zcraks

Recommended Posts

31-	setPedAnimation(source, "cop_ambient", "copbrowse_loop",5000,true,false,false)
32-	setTimer(function()
33-	setPedAnimation(source)
	end, 5000, 1)

33: Bad argument @ 'setPedAnimation' [Expected element at argument 1, go nill]

Link to comment
  • Moderators

As long as source is a valid value this should work:

setPedAnimation(source, "cop_ambient", "copbrowse_loop",5000,true,false,false)
setTimer(function( thePlayer )
	setPedAnimation(thePlayer)
end, 5000, 1, source)

You can use it this way as well:

setPedAnimation(source, "cop_ambient", "copbrowse_loop",5000,true,false,false)
setTimer( setPedAnimation, 5000, 1, source )

 

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