getPedComponents
Retrieves an array of clothing component drawables and textures currently equipped on a ped.
💡 Syntax
local components = exports['kartik-clothing']:getPedComponents(ped)📥 Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
ped | number | Yes | Target ped handle. Defaults to player ped. |
📤 Returns
| Type | Description |
|---|---|
table | nil | List of { component_id, drawable, texture } tables. |
💻 Example
local components = exports['kartik-clothing']:getPedComponents()
for _, comp in ipairs(components) do
print(("Component %d: Drawable %d, Texture %d"):format(comp.component_id, comp.drawable, comp.texture))
end