xXGhostXx

[HELP] setPedAnimation

Recommended Posts

Hi guys.

What is problem in my codes ?

Animation repeated but i want dont repeated !

setPedAnimation(source,"shop","smoke_ryd",-1,true, false, false, false)

 

Share this post


Link to post
Posted (edited)

The 5th argument is a bool indicating whether to loop or not. Change it to false and it won't loop (repeat)

setPedAnimation(source, "shop", "smoke_ryd", -1, true, false, false, false)

 

Edited by MrTasty

Share this post


Link to post
38 minutes ago, MrTasty said:

The 5th argument is a bool indicating whether to loop or not. Change it to false and it won't loop (repeat)


setPedAnimation(source, "shop", "smoke_ryd", -1, true, false, false, false)

 

You can give me code ?

Share this post


Link to post

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

 

Share this post


Link to post
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)

 

Share this post


Link to post

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

Share this post


Link to post
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 ❤️

Share this post


Link to post
Posted (edited)
Em 10/04/2019 às 12:30, xXGhostXx disse:

alguem pode me ajudar a criar comandos do painel p para chat?

 

 

script de uso de comandos no chat

 

Edited by BRUYNO46646

Share this post


Link to post

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.