Neffax Posted January 8, 2022 Share Posted January 8, 2022 function walk () setPedAnimation (localPlayer, "ped", "walk_gang1") end addCommandHandler ("walk_gang", walk) error = Bad Argument @ 'setPedAnimation' [Expected element at argument 1, got string 'player' ] Link to comment
The_GTA Posted January 8, 2022 Share Posted January 8, 2022 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". 1 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