RX Scripts Logo
Appearance

Functions

Client-side appearance/clothing functions supporting multiple systems.

The Appearance adapter provides unified character appearance and clothing management.

Functions

openWardrobe

Opens the wardrobe/clothing menu.

FM.appearance.openWardrobe(propertyId)
propertyId
string

Property identifier for wardrobe location (optional, used by some systems)

Example:

-- Open wardrobe
FM.appearance.openWardrobe()

-- Open wardrobe for specific property
FM.appearance.openWardrobe("property_123")

setOutfit

Applies a saved outfit to the player.

FM.appearance.setOutfit(clothingData)
clothingData
table required

Outfit/clothing data structure (format varies by appearance system)

Example:

local savedOutfit = {
    -- Outfit data structure depends on your appearance system
    -- This is just an example
    tshirt_1 = 15,
    tshirt_2 = 0,
    torso_1 = 4,
    torso_2 = 14,
    -- ... more clothing data
}

FM.appearance.setOutfit(savedOutfit)
FM.framework.notify("Outfit changed!", "success")

loadSkin

Reloads the player's saved skin/appearance.

FM.appearance.loadSkin()

Example:

-- Reload player's skin after respawn
FM.appearance.loadSkin()

Exports

Appearance functions are available as exports:

exports['fmLib']:appearance_openWardrobe(propertyId)
exports['fmLib']:appearance_setOutfit(clothingData)
exports['fmLib']:appearance_loadSkin()