Jump to content

About skin changed


Recommended Posts

The function spawnPlayer has an option to spawn with a skin. You can either use that or you can use setElementModel to the player's skin.

If your script is not respawning the player right away, you might want to save the data into a table or as elementData. All you have to do is use setElementData to save the data and use getElementData to retrieve the old skin.

Should be mentioned however if you use setElementModel, it's important to call it from the "onPlayerSpawn" event, I've seen to many people calling it in all kinds of ways, some of them before the player actually spawns which then resets the skin. Note that this topic is a double post original topic.

Link to comment

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