Kartik Scripts

setPedComponents

Sets specific clothing component variations (drawables and textures) on a ped.

💡 Syntax

local success = exports['kartik-clothing']:setPedComponents(ped, components)

📥 Parameters

ParameterTypeOptionalDescription
pednumberNoTarget ped handle.
componentstableNoList of component items { component_id = number, drawable = number, texture = number }.

📤 Returns

TypeDescription
booleantrue 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
})

On this page