Jump to content

[HELP] setPedAnimation


xXGhostXx

Recommended Posts

8 minutes ago, MrTasty said:

Do you perhaps have a problem with counting? What's so hard in changing a true to a false?


setPedAnimation(source, "shop", "smoke_ryd", -1, true, false, false, false)
--                                               ^^^^ change this into a false

 

Dear thanks but i want don't repeated animation but this just stop animation after 1 play

animation : sit

setPedAnimation(thePlayer,"sunbathe","parksit_w_in",-1,false, false, false, false)

 

Link to comment

So what do you want? Non-repeated but freezing at last frame?

setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, false)
--                                                         ^^^^^ loop           ^^^^^ freeze at last frame

-- this one will not loop and will freeze at last frame:
setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, true)

 

  • Like 1
Link to comment
7 hours ago, MrTasty said:

So what do you want? Non-repeated but freezing at last frame?


setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, false)
--                                                         ^^^^^ loop           ^^^^^ freeze at last frame

-- this one will not loop and will freeze at last frame:
setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, true)

 

Thanks for your help ❤️

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