s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
Clothing
chevron_left
Classes
class
Clothing
Constructors
functions
Clothing
Properties
data_object
AllowedSlots
data_object
AllowTintSelect
data_object
BodyGroupMask
data_object
BodyMaterialGroup
data_object
BodyModel
data_object
BodyTags
data_object
Category
data_object
ConditionalModels
data_object
DeformationMode
remove_circle
EyesMaterial
remove_circle
HasHumanSkin
data_object
HeelHeight
data_object
HideBody
data_object
HumanAltFemaleModel
data_object
HumanAltModel
remove_circle
HumanEyesMaterial
remove_circle
HumanSkinBodyGroups
remove_circle
HumanSkinMaterial
remove_circle
HumanSkinMaterialGroup
remove_circle
HumanSkinModel
remove_circle
HumanSkinTags
data_object
Icon
data_object
MaterialGroup
remove_circle
Model
remove_circle
Parent
data_object
ReplacesBody
data_object
ShowTintControls
remove_circle
SkinMaterial
data_object
SlotsOver
data_object
SlotsUnder
data_object
SteamItemDefinitionId
remove_circle
SubCategory
remove_circle
Subtitle
data_object
Tags
data_object
TintDefault
data_object
TintSelection
data_object
Title
data_object
Type
Methods
functions
CanBeWornWith
functions
CanWear
functions
GetModel
functions
HasPermissions
Static Methods
remove_circle
DressSceneObject
Clothing
Describes an item of clothing and implicitly which other items it can be worn with
class
Sandbox
.
account_tree
extends
GameResource
sealed
Sandbox.Engine
build
Constructors
1
Clothing
(
)
data_object
Properties
38
AllowedSlots
Slots
Allowed garment slots across both layers. All accepts every garment; None accepts no clothing.
AllowTintSelect
bool
Allows the wearer to choose a tint for this garment.
BodyGroupMask
Nullable`1
Bodygroup choices. Null uses the model's defaults; an explicit zero mask is preserved.
BodyMaterialGroup
string
Material group used by the replacement body, independently of the garment's material group.
BodyModel
string
Skeletal model to use for the replacement body.
BodyTags
TagSet
Tags used to select garment variants, such as female.
Category
ClothingCategory
The garment category. Player models always use Skin.
ConditionalModels
Dictionary`2
A list of conditional models. (key) = tag(s), (value) = model
DeformationMode
DeformationModeType
How this clothing responds to the avatar's body deforms. Normal reshapes it, None ignores them, and Rigid moves it without reshaping it, for hard items like earrings or a sword.
EyesMaterial
obsolete
string
Legacy eye material override. Retained for existing clothing resources.
HasHumanSkin
obsolete
bool
Compatibility alias for ReplacesBody.
HeelHeight
float
Do we need to lift the heel up?
HideBody
BodyGroups
Which body parts of the player model should not show when this clothing is equipped.
HumanAltFemaleModel
string
Optional model for female Human bodies. Falls back to HumanAltModel when unset.
HumanAltModel
string
The model to bonemerge to the human player when this clothing is equipped.
HumanEyesMaterial
obsolete
string
Legacy Human eye material path. Retained verbatim for existing resources and code.
HumanSkinBodyGroups
obsolete
UInt64
Compatibility alias for BodyGroupMask. Unspecified model defaults are reported as zero by this legacy API.
HumanSkinMaterial
obsolete
string
Legacy Human skin material path. Retained verbatim for existing resources and code.
HumanSkinMaterialGroup
obsolete
string
Compatibility alias for BodyMaterialGroup.
HumanSkinModel
obsolete
string
Compatibility alias for BodyModel.
HumanSkinTags
obsolete
TagSet
Compatibility alias for BodyTags.
Icon
IconSetup
Icon for this clothing piece.
MaterialGroup
string
Which material group of the model to use.
Model
obsolete
string
Legacy Citizen garment model. Retained for existing clothing resources.
Parent
obsolete
Clothing
The clothing to parent this too. It will be displayed as a variation of its parent
ReplacesBody
bool
Compatibility accessor for Type. True selects Player Model; false selects Clothing.
ShowTintControls
bool
Whether tint controls apply to the item being authored.
SkinMaterial
obsolete
string
Legacy skin material override. Retained for existing clothing resources.
SlotsOver
Slots
Which slots this clothing takes on "outer" layer.
SlotsUnder
Slots
Which slots this clothing takes on "inner" layer.
SteamItemDefinitionId
Nullable`1
The Steam Item Definition ID for this clothing item, if it's an inventory item
SubCategory
obsolete
string
This should be a single word to describe the subcategory, and should match any other items you want to categorize in the same bunch. The work will be tokenized so it can become localized.
Subtitle
obsolete
string
Legacy subtitle, retained for existing resources and code.
Tags
string
Tags used to select conditional models on other equipped garments.
TintDefault
float
Initial position within the garment's tint gradient.
TintSelection
Gradient
Available garment colors, sampled using the wearer's tint selection.
Title
string
Name of the clothing to show in UI.
Type
ClothingType
Whether this item adds clothing or replaces the player's entire model.
functions
Methods
4
CanBeWornWith
(
target
)
bool
Return true if this item of clothing can be worn with the target item, at the same time.
CanWear
(
garment
)
bool
Returns whether this player model permits a garment's slots. Does not check mesh or skeleton compatibility.
GetModel
(
clothingList
)
string
HasPermissions
(
)
bool
Can we wear this item?
functions
Static Methods
1
DressSceneObject
(
citizen
,
Clothing
)
obsolete
List`1
Inheritance
Resource
GameResource
Clothing
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.