-stolka- Posted September 29, 2013 Share 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 ) Link to comment
Discord Moderators Zango Posted September 29, 2013 Discord Moderators Share 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. Link to comment
-stolka- Posted September 29, 2013 Author Share Posted September 29, 2013 my bad i forgot it was written "Criminal".. i have another question... how do i stop an animation? Link to comment
denny199 Posted September 29, 2013 Share Posted September 29, 2013 setPedAnimation ( playerelement, false ) Link to comment
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