-stolka- Posted September 29, 2013 Posted September 29, 2013 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 Zango Posted September 29, 2013 Discord Moderators Posted September 29, 2013 There is nothing wrong with your code. Your player isn't in the team "criminal" or this team doesn't exist.
-stolka- Posted September 29, 2013 Author Posted September 29, 2013 my bad i forgot it was written "Criminal".. i have another question... how do i stop an animation?
denny199 Posted September 29, 2013 Posted September 29, 2013 setPedAnimation ( playerelement, false )
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