Jump to content

Bad argument @ 'setPedSkin'


Tycka

Recommended Posts

Posted

Hello how fix this error?

Bad argument @ 'setPedSkin' [Expected element at argument 1, got number '73'] 

Line:

setPedSkin(getElementData(player,"skin")) 

  • MTA Team
Posted

First of all, setPedSkin is deprecated. You should not use it as it might be removed. Secondly, you are missing the element argument.

A correct syntax would be:

setElementModel(player,getElementData(player,"skin")) 
  

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