setPedComponents
Sets specific clothing component variations (drawables and textures) on a ped.
💡 Syntax
local success = exports['kartik-clothing']:setPedComponents(ped, components)📥 Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
ped | number | No | Target ped handle. |
components | table | No | List of component items { component_id = number, drawable = number, texture = number }. |
📤 Returns
| Type | Description |
|---|---|
boolean | true if components were set successfully. |
💻 Example
exports['kartik-clothing']:setPedComponents(PlayerPedId(), {
{ component_id = 11, drawable = 15, texture = 0 }, -- Top / Jacket
{ component_id = 4, drawable = 10, texture = 2 } -- Pants
})