Jump to content

problem with "setPedAnimation"


Neffax

Recommended Posts

Posted
function walk ()
 
 
 
       setPedAnimation (localPlayer, "ped", "walk_gang1")
 
 
 
end
addCommandHandler ("walk_gang", walk)
 
 
 
error = Bad Argument @  'setPedAnimation' [Expected element at argument 1, got string 'player' ]
Posted

Hello Neffax,

somewhere inside of your resource you have overwritten the global variable "localPlayer", that is usually pointing to the client player element, with the Lua string "player".

  • Like 1

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