Skip to main content

GetSkin

Return the current skin data
--- @param last? boolean
--- @return table
exports["smzi_skinmanager"]:GetSkin(last)

ApplySkin

Applies the appearance without changing the model
--- @param skin table
--- @param saveSkin? boolean
--- @return boolean
exports["smzi_skinmanager"]:ApplySkin(skin, saveSkin)

SaveSkin

Sends the current skin data to the framework to save
--- @param skin table
--- @return nil
exports["smzi_skinmanager"]:SaveSkin(skin)

SetModel

This function is used to apply a ped to a player and returns the ped.
--- @param model string | integer
--- @return integer
exports["smzi_skinmanager"]:SetModel(model)

GetComponents

Return the current components on the Player Ped
--- @param isCollection? boolean
--- @return table
exports["smzi_skinmanager"]:GetComponents(isCollection)

SetComponent

This function can be used to modify the player skin on a specific component.
--- @param componentName string
--- @param componentValue number
--- @param isCollection? boolean
--- @return nil
exports["smzi_skinmanager"]:SetComponent(componentName, componentValue, isCollection)

InitDefaultSkin

Initialize default Ped Skin
--- @param sex? string or number
--- @return nil
exports["smzi_skinmanager"]:InitDefaultSkin(sex)