OpenCreator

How to use the export

The skin variable contains all necesarry information about the players skin. If your Config.useSkinchanger is set to true the skin parameter is already formatted to work with skinchanger. The tattoos parameter is only available if Config.useSkinchanger is set to true. Otherwise the tattoos are part of the skin parameter as skinchanger doesn't support tattoos.

exports["nvx_charcreator"]:OpenCreator(function(skin, tattoos)
end)

The "skin" object

The structure of the object depends on Config.useSkinchanger. If it is set to false, the object will look the following:

local skin = {
    model,
    headBlend,
    faceFeatures,
    hair,
    eyeColor,
    tattoos
}

If Config.useSkinchanger is disabled, the skin object is formatted to fit the skinchanger data structure. You only have to encode the object via json and save it to your database. Take a look at the skinchanger resource to see how their data structure looks like.

Last updated