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