Zcraks Posted June 1, 2019 Posted June 1, 2019 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]
Moderators Patrick Posted June 1, 2019 Moderators Posted June 1, 2019 source is not defined. Paste the full code.
DNL291 Posted June 2, 2019 Posted June 2, 2019 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 )
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