Clothing — Server

GetResourceName

Returns the clothing resource name.

local name = Bridge.Clothing.GetResourceName()
-- Returns: string (always "default")

Description: Returns the name of the Clothing module resource. Used for internal identification. Always returns "default" for the built-in Clothing module.

IsMale

Returns whether a player’s character is male.

local male = Bridge.Clothing.IsMale(src)
-- Returns: boolean
ParameterTypeDescription
srcnumberPlayer server ID

GetAppearance

Returns a player’s appearance data.

local appearance = Bridge.Clothing.GetAppearance(src)
-- Returns: table
ParameterTypeDescription
srcnumberPlayer server ID

SetAppearance

Applies appearance data to a player.

Bridge.Clothing.SetAppearance(src, appearance)
ParameterTypeDescription
srcnumberPlayer server ID
appearancetableAppearance data table

SetAppearanceExt

Sets individual appearance properties on a player. Used for partial updates.

Bridge.Clothing.SetAppearanceExt(src, key, value)
ParameterTypeDescription
srcnumberPlayer server ID
keystringAppearance property key
valueanyValue to set

RestoreAppearance

Restores a player’s saved appearance from the database.

Bridge.Clothing.RestoreAppearance(src)
ParameterTypeDescription
srcnumberPlayer server ID