Skip to Content

Server Exports

GetAppearance

Returns a character’s saved appearance. See the client export GetAppearance for the format.

---@param player number | string # An online player's server id, or a character's identifier ---@return Appearance? local appearance = exports["lb-appearance"]:GetAppearance(player)

SaveAppearance

Saves a character’s appearance. A player who is online changes into it, and their menu closes if it’s open.

---@param player number | string # An online player's server id, or a character's identifier ---@param appearance Appearance ---@return boolean saved local saved = exports["lb-appearance"]:SaveAppearance(player, appearance)

GetOutfits

Returns a character’s saved outfits, or false when the server id has no character. See the client export GetOutfits for the format.

---@param player number | string # An online player's server id, or a character's identifier ---@return Outfit[] | false local outfits = exports["lb-appearance"]:GetOutfits(player)

AddOutfit

Saves an outfit for a character. The head and the hair aren’t saved.

---@param player number | string # An online player's server id, or a character's identifier ---@param label string # At most 100 characters ---@param outfit OutfitAppearance | Appearance ---@return Outfit | false local outfit = exports["lb-appearance"]:AddOutfit(player, label, outfit)

DeleteOutfit

---@param player number | string # An online player's server id, or a character's identifier ---@param id integer ---@return boolean deleted local deleted = exports["lb-appearance"]:DeleteOutfit(player, id)

DeleteCharacter

Deletes a character’s saved appearance, outfits, purchased clothes and saved nail designs.

---@param identifier string ---@return boolean deleted local deleted = exports["lb-appearance"]:DeleteCharacter(identifier)