getPedComponents
The getPedComponents
export allows you to retrieve a complete list of clothing components applied to a given ped. This includes data such as drawable variations and textures for each component slot (e.g., torso, pants, arms, gloves). It's ideal for saving appearances or debugging character customization.
How to Use
To get the clothing components of a ped, use the following code:
This will return a table indexed by component slot, where each entry contains:
component_id
: The slot IDdrawable
: The drawable index (or combined index for gloves)texture
: The texture variation
Special cases like arms (component_id == 3
) and gloves (component_id == 99
) are handled separately for accuracy.
Last updated