Jump to content

Animation / help


Recommended Posts

Posted
addEventHandler( "onPlayerChat", getRootElement(), function ()
    setPedAnimation( source, "ped", "IDLE_chat", 1, false, true  )
    -- stop anim = 2 sec
    setTimer( function() 
        setPedAnimation(source, false) 
    end, 2000, 1)
end )

 plssss fix :c

Posted (edited)

O que não está funcionando? A linha 2 parece correta, na função setTimer source retornará nil.

Faça isto na função setTimer:

setTimer( function(player) 
	setPedAnimation(player, nil) 
end, 2000, 1, source)

 

Edited by DNL291

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