Jump to content

animations


-stolka-

Recommended Posts

Posted

why doesn't the player get the animation when type the command?

  
function dealDrug ( playerSource ) 
 if ( playerSource ) then 
  myTeam = getPlayerTeam(playerSource) 
  if myTeam then 
   myTeamName = getTeamName(myTeam) 
    if ( myTeamName == "criminal" ) then 
     setPedAnimation( playerSource, "DEALER", "DEALER_DEAL") 
   end 
  end 
 end 
end 
addCommandHandler ( "deal", dealDrug ) 

  • Discord Moderators
Posted

There is nothing wrong with your code.

Your player isn't in the team "criminal" or this team doesn't exist.

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